Skip to main content

Worklet: Get-IPConfigurations


jbragdon

   ______     __        ________  ______            _____                        __  _           
  / ____/__  / /_      /  _/ __ \/ ____/___  ____  / __(_)___ ___  ___________ _/ /_(_)___  ____ 
 / / __/ _ \/ __/_____ / // /_/ / /   / __ \/ __ \/ /_/ / __ `/ / / / ___/ __ `/ __/ / __ \/ __ \
/ /_/ /  __/ /_/_____// // ____/ /___/ /_/ / / / / __/ / /_/ / /_/ / /  / /_/ / /_/ / /_/ / / / /
\____/\___/\__/     /___/_/    \____/\____/_/ /_/_/ /_/\__, /\__,_/_/   \__,_/\__/_/\____/_/ /_/ 
                                                      /____/                                     

https://github.com/bragdonjm/PS-Automox-Worklets/blob/main/Worklets/Get-IPConfiguration.ps1

Computer system sprawl is a real thing. Finding specific information about a system in some
easy to use automatic method can be tricky. Here is a worklet to grab detailed information about all 
network interfaces on a remote windows system. 

Note: 
- Powershell is only. 
- Verbose is supported though there is not much there. 

Usage:
Example:  .\Get-IPConfiguration.ps1

ComputerName IPAddress    SubnetMask    DefaultGateway DNSServers   IsDHCPEnabled macAddress       
------------ ---------    ----------    -------------- ----------   ------------- ----------       
redqueen     10.23.23.51  255.255.255.0 10.23.23.1     {10.23.23.1}          True 0C:9D:92:81:15:A1
redqueen     172.31.160.1 255.255.240.0                                     False 00:15:5D:89:AD:34
redqueen     172.20.32.1  255.255.240.0                                     False 00:15:5D:05:92:95

Faq:
Q: Why did you leave param in, but effectively blank? 
A: No real great idea on what to put there that might be useful. It is left just so -verbose works.  

Q: Why no JSON this time? 
A: I don't foresee this being useful to hand data elsewhere. A human will probably read this. 


0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings