I have a Windows Server 2008 R2 machine.
Local Area Connection isn't working anymore, the interface exists but it doesn't as an ip interface.
C:\Windows\system32>netsh int show int
Admin State State Type Interface Name
-------------------------------------------------------------------------
Enabled Disconnected Dedicated Local Area Connection
C:\Windows\system32>netsh int ip show int
Idx Met MTU State Name
--- ---------- ---------- ------------ ---------------------------
1 50 4294967295 connected Loopback Pseudo-Interface 1
If I try to assign an IP Address I get this:
C:\Windows\system32>netsh int ipv4 set address "Local Area Connection" static XX.XX.XX.XX XX.XX.XX.XX XX.XX.XX.XX
Element not found.
What happens? Windows has lost network configuration?
I've also tried to reset ipv4 and ipv6 networking using netsh but still nothing…
Best Answer
According to your gist, the adapter is disabled. Try this in PowerShell:
$adapter = Get-WmiObject -Class Win32_NetworkAdapter -filter "NetConnectionID='Local Area Connection'"
You should have the adapter available as object $adapter; to verify this use:
Write-Host $adapter.Name
It should print the name of the physical adapter, "Intel(R) I210...". If you have the correct adapter, use:
$adapter.Enable()