I'm trying to find a way to configure a permanent static IP on Windows 10 IOT devices with their Nic unplugged. I have a script that needs to be run on the devices before they're in place and part of it is configuring the NICs. When I use the following:
New-NetIpAddress -InterfaceIndex 10 -IpAddress 192.168.9.10 -PrefixLength 24 -DefaultGateway 192.168.9.1 -AddressFamily IPv4
I get an error
New-NetIpAddress : Inconsistent parameters PolicyStore PersistentStore and Dhcp Enabled
I attempted to explictly turn off DHCP with Set-NetIPInterface -InterfaceIndex 10 -Dhcp Disabled
before ussing the New-NetIpAddress command but I get the same error.
Any suggestions?