Member details
- Joined
- Oct 16, 2009
- Messages
- 15,153
It seems I have to go into the Device Manager to enable or disable my Ethernet adapter. The Network Connections dialog does not seem to work where the WiFi will enable or disable.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Those separators that look kinda like backslashes are actual the "pipe" symbol. On my keyboard it's SHIFT + \$netadapter = Get-NetAdapter -Name Ethernet
$netadapter | Set-NetIPInterface -Dhcp Disabled
$netadapter | New-NetIPAddress -IPAddress 192.168.1.222 -PrefixLength 24 –DefaultGateway 192.168.1.254
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("75.75.75.75","75.75.76.76")
I'm pretty sure, but not positive you can use, either the adapter's index number or, the adapter's "alias" . "Ethernet" in my case.since the index is the only thing really used in the New-NetIPAddress
PS C:\WINDOWS\system32> write-host $netadapter
MSFT_NetAdapter (CreationClassName = "MSFT_NetAdapter",
DeviceID = "{99ADCA83-867F-4E4F-8A47-BBC626F20AB2}",
SystemCreationClassName = "CIM_NetworkPort",
SystemName = "ComputerName")
If you use the Get-NetAdapter command without any reference to a specific adapter it should display the names ("Alias") of all adapters present on the system.What happens if you have two Ethernet adapters
$netadapter = Get-NetAdapter -Name “Ethernet 2”$netadapter | Set-NetIPInterface -Dhcp Disabled$netadapter | New-NetIPAddress -IPAddress 10.0.0.1 -PrefixLength 8