July 9, 2011 6:45 AM
Posted by: Richard Siddaway
NetworkAn interesting problem from the forum. Get the IP enabled network adapters and read the associated registry keys to get the value of the NetLuidIndex.
$HKLM = 2147483650 ...
June 29, 2011 12:42 PM
Posted by: Richard Siddaway
Network,
PowerShell v2,
Windows 2008 R2,
Windows 7,
WMIYesterday I was looking at changing a Network connection id (the name that shows in Network and Sharing Center when you look at the adapters). I kept getting an error – either COM or number of arguments depending if I was running locally or remotely.
I eventually realised that I must...
May 21, 2011 3:01 AM
Posted by: Richard Siddaway
NetworkOne of the standard troubleshooting tasks when investigating a problem is deciding if the machine can communicate on the network. The approach is usually
- ping the loop back address to check TCP/IP is working
- ping the machines own address
- ping the default...
May 1, 2011 4:13 AM
Posted by: Richard Siddaway
Network,
PowerShell v2,
WMINOTE: If you are wondering why the Deep Dive posts are non-consecutive – they are part of a longer series posted here
March 13, 2011 1:38 PM
Posted by: Richard Siddaway
Network,
PowerShell v2,
Windows 2008 R2,
WMII’m currently writing Chapter 11 of PowerShell and WMI and its about using the WMI classes related to networking. I tried the Win32_NetworkAdapter on the HP laptop I use for writing and everything worked fine. Tried it on my Lenovo that I use as a Hyper-V server and got a Provider Load failure...
October 8, 2010 12:31 PM
Posted by: Richard Siddaway
NetworkIn episode 10 we saw how to renew the lease of a DHCP enabled NIC. What about dropping the lease all together?
Lets go back to the NIC we are experimenting on.
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter "Index='11'" | gm -MemberType...
October 6, 2010 2:53 PM
Posted by: Richard Siddaway
Network,
PowerShell v2We have seen how to test if a NIC is DHCP enabled but what about manipulating the DHCP settings. First off lets look at renewing a DHCP lease.
We can see the lease information
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter "Index='11'" |...
September 30, 2010 12:28 PM
Posted by: Richard Siddaway
NetworkWe were looking at MAC Addresses last time. We can filter on MAC address
Get-WmiObject -Class Win32_NetworkAdapter -Filter "MACAddress='00:27:2B:F5:96:D5'"
No its not my real MAC address :-)
There are two useful methods on the NetworAdapter class – Disable and...
September 29, 2010 1:20 PM
Posted by: Richard Siddaway
NetworkOne task I find myself doing on a regular basis is checking the physical address of a NIC. Ipconfig is OK but we have to wade through a lot of stuff. Much simpler to do this
Get-WmiObject -Class Win32_NetworkAdapter -ComputerName "." |
select Name, MACAddress
...