PowerShell for Windows Admins:

Network Adapter


February 22, 2016  11:18 AM

IP Default Gateways by cmdlet

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Network Adapter, Powershell

Following my recent post on setting the default gateway by using the Win32_NetworkAdapterConfiguration CIM class here’s how you do it using the networking cmdlets Discover your adapters Get-NetAdapter Check the default gateway for an adapter Get-NetIPConfiguration -InterfaceIndex 12 |...

February 21, 2016  7:39 AM

IP Default Gateways

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Network Adapter, Powershell

When you configure the IP Address on a network adapter you also have to set the default gateway if you want the machine to communicate with machines on other subnets. One way you can do this is through the SetGateways method of Win32_NetworkAdapterConfiguration $class = Get-CimClass...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: