How to assign a Static IP address to Windows Server 2016 using Powershell


In Windows Server 2016 using PowerShell run the following command to manually set a static IP address.

New-NetIPAddress -IPAddress 10.1.2.3 -AddressFamily IPv4 -DefaultGateway 10.1.2.1 -PrefixLength 24 -InterfaceAlias "Ethernet"

Of course modify the values as needed.


Leave a Reply

Your email address will not be published. Required fields are marked *