Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/circui15/public_html/packetpros.com/index.php:4) in /home/circui15/public_html/packetpros.com/wp-content/plugins/wp-file-upload/wordpress_file_upload.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/circui15/public_html/packetpros.com/index.php:4) in /home/circui15/public_html/packetpros.com/wp-content/plugins/wp-file-upload/wordpress_file_upload.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /home/circui15/public_html/packetpros.com/index.php:4) in /home/circui15/public_html/packetpros.com/wp-content/plugins/read-offline/lib/phpMobi/MOBIClass/MOBI.php on line 179

Warning: Cannot modify header information - headers already sent by (output started at /home/circui15/public_html/packetpros.com/index.php:4) in /home/circui15/public_html/packetpros.com/wp-content/plugins/read-offline/lib/phpMobi/MOBIClass/MOBI.php on line 180

Warning: Cannot modify header information - headers already sent by (output started at /home/circui15/public_html/packetpros.com/index.php:4) in /home/circui15/public_html/packetpros.com/wp-content/plugins/read-offline/lib/phpMobi/MOBIClass/MOBI.php on line 181

Warning: Cannot modify header information - headers already sent by (output started at /home/circui15/public_html/packetpros.com/index.php:4) in /home/circui15/public_html/packetpros.com/wp-content/plugins/read-offline/lib/phpMobi/MOBIClass/MOBI.php on line 182

Warning: Cannot modify header information - headers already sent by (output started at /home/circui15/public_html/packetpros.com/index.php:4) in /home/circui15/public_html/packetpros.com/wp-content/plugins/read-offline/lib/phpMobi/MOBIClass/MOBI.php on line 183

Warning: Cannot modify header information - headers already sent by (output started at /home/circui15/public_html/packetpros.com/index.php:4) in /home/circui15/public_html/packetpros.com/wp-content/plugins/read-offline/lib/phpMobi/MOBIClass/MOBI.php on line 184

Warning: Cannot modify header information - headers already sent by (output started at /home/circui15/public_html/packetpros.com/index.php:4) in /home/circui15/public_html/packetpros.com/wp-content/plugins/read-offline/lib/phpMobi/MOBIClass/MOBI.php on line 185

Warning: Cannot modify header information - headers already sent by (output started at /home/circui15/public_html/packetpros.com/index.php:4) in /home/circui15/public_html/packetpros.com/wp-content/plugins/read-offline/lib/phpMobi/MOBIClass/MOBI.php on line 186
View PC network info - IP Config`"%`"%BOOKMOBIKwxb-ZMOBIaoXd, @EXTHldColliniMiscellanousg

I connect to a lot of customer networks and I was looking for an easy way to view network info- especially the domain name. Yes I can get all this through ipconfig /all but I …

j'Mon, 07 Jul 2014 20:30:22 +0000p$http://packetpros.com/?p=313ePacketprosf Copyright packetpros.comView PC network info - IP Config alternative

I connect to a lot of customer networks and I was looking for an easy way to view network info- especially the domain name. Yes I can get all this through ipconfig /all but I get all the adapters including the ones I don’t want. I spent some time and found/tweaked a powershell script. The script only shows the information that I need and only on active connections. It’s nice to see my local info as well as the information I get when I VPN to a customer. I also have it go out and get my public IP address.

$a = (Get-Host).UI.RawUI

$a.WindowTitle = "IP Configurations"

$a.ForegroundColor = "cyan" 
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -filter 'index=11' -ComputerName . | Select-Object -Property [a-z]* -ExcludeProperty IPConnectionMetric,DNSDomainSu*,IPX*,WINS*,Index,DNSEnabledForWINSResolution,DNSHostName,Domain*,Full*,IPE*,IPF*,Arp*,Caption,Data*,Dead*,DefaultT*,Forw*,Gate*,IGM*,Inter*,IPP*,IPSE*,IPU*,K*,MTU,Num*,PMT*,Se*,Tcp*,Scope,Path,Options,ClassPath,Properties,SystemProp*,Qua*,Site,Container

$a.ForegroundColor = "yellow"
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -filter 'index=9' -ComputerName . | Select-Object -Property [a-z]* -ExcludeProperty IPConnectionMetric,DNSDomainSu*,IPX*,WINS*,Index,DNSEnabledForWINSResolution,DNSHostName,Domain*,Full*,IPE*,IPF*,Arp*,Caption,Data*,Dead*,DefaultT*,Forw*,Gate*,IGM*,Inter*,IPP*,IPSE*,IPU*,K*,MTU,Num*,PMT*,Se*,Tcp*,Scope,Path,Options,ClassPath,Properties,SystemProp*,Qua*,Site,Container

$a.ForegroundColor = "magenta"
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -filter 'index=25' -ComputerName . | Select-Object -Property [a-z]* -ExcludeProperty IPConnectionMetric,DNSDomainSu*,IPX*,WINS*,Index,DNSEnabledForWINSResolution,DNSHostName,Domain*,Full*,IPE*,IPF*,Arp*,Caption,Data*,Dead*,DefaultT*,Forw*,Gate*,IGM*,Inter*,IPP*,IPSE*,IPU*,K*,MTU,Num*,PMT*,Se*,Tcp*,Scope,Path,Options,ClassPath,Properties,SystemProp*,Qua*,Site,Container

$a.ForegroundColor = "white"
$wc=New-Object net.webclient

$public_ip = $wc.downloadstring("http://checkip.dyndns.com") -replace "[^\d\.]"
"Public IP is : $public_ip"

cmd /c pause | out-null

The one thing you will have to figure out is what the index is on the interfaces you want view. Open powershell_ise.exe and run the following command

Get-WmiObject -Class Win32_NetworkAdapterConfiguration -ComputerName .

We can now see a list of network devices and their respect Index ID’s. In this screenshot my wireless adapter is index 11. In the script, make sure you filter to the adapter you want to see.

Copy the above text, save it as ipinfo.ps1. Then create a shortcut to it preceding the Target command with powershell.exe

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe &’C:\TEMP\ipinfo.ps1′

Here’s the final result. Note that my physical adapter has no setting because I’m working off of wireless.

If you get an error running the script, check this link on permitting scripts to run on your PC.
http://technet.microsoft.com/en-us/library/ee176949.aspx

 

FLIS00 00 00 0800 4100 0000 00 00 00ff ff ff ff00 0100 0300 00 00 0300 00 00 01ff ff ff ffFCIS00 00 00 1400 00 00 1000 00 00 0100 00 00 0000 00 0e 5a00 00 00 0000 00 00 2000 00 00 0800 0100 0100 00 00 003918400778