- If you have multiple NIC’s you need to identify the name of the NIC. If you’re using a virtual server, disconnect all NICs apart from the one so it can be identified in the next step.
- Type Get-NetAdapter
- Make a note of your NIC name, for example Ethernet. If you have disconnected all other NICs, Ethernet should be the only one showing as UP
- Next, type the below command but amend to your IP address, Gateway and Subnet PreFix LengthNew-NetIPAddress -InterfaceAlias Ethernet -IPAddress 0.0.0.0 -DefaultGateway 0.0.0.0 -PrefixLength 24
- Press Enter
- To configure DNS entries, the command would be:Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddress 0.0.0.0, 0.0.0.0
- Press Enter
- Done
Please note, if copying the commands, you may need to reenter – and ” if the commands fail