How to configure a static IP address using PowerShell

Опубликовано: 22 Июнь 2026
на канале: BineshTech
113
1

How to configure a static IP address using PowerShell

Below is the CMDLet for example:-
New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress 192.168.1.100 -PrefixLength 24 -DefaultGateway 192.168.1.1
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses 192.168.1.1, 8.8.8.8