Setting an IP address PS C:\Users\Administrator> Get-NetAdapter
Name InterfaceDescription ifIndex Status MacAddress LinkSpeed —- ——————– ——- —— ———- ——— Ethernet0 Intel(R) 82574L Gigabit Network Conn… 12 Up 00-0C-29-3C-C0-2F 1 Gbps PS C:\Users\Administrator> Get-NetIPAddress -InterfaceIndex 12 -AddressFamily IPv4
To add the IP address use:
New-NetIPAddress -InterfaceIndex 12 -AddressFamily IPv4 -IPAddress 192.168.1.9 -PrefixLength 24
Recent Comments