How to Set a Static IP Address Using PowerShell in Windows 10/11 and Windows Server – Complete Guide
Networking...InterfaceAlias $InterfaceAlias ` -AddressFamily IPv4 ` -Dhcp Disabled New-NetIPAddress ` -InterfaceAlias $InterfaceAlias ` -IPAddress $IPAddress ` -PrefixLength $PrefixLength ` -DefaultGateway $DefaultGateway Set-DnsClientServe...