How to use NETSH when “local area connection” / address name is invalid?
netsh -f file.txt
issues a msg “invalid interface”
netsh -c …… > file.txt created the lines below:
#========================
# Interface configuration
#========================
pushd interface
reset all
popd
# End of interface configuration
# ———————————-
# Interface IP Configuration
# ———————————-
pushd interface ip
# Interface IP Configuration for “{CE5BED69-35DA-4456-B5CE-2F16B5BC97F9}”
set address name = “{CE5BED69-35DA-4456-B5CE-2F16B5BC97F9}” source = static addr = oct1.oct2.xxx.121 mask = 255.255.255.0
set address name = “{CE5BED69-35DA-4456-B5CE-2F16B5BC97F9}” gateway = oct1.oct2.xxx.1 gwmetric = 1
set dns name = “{CE5BED69-35DA-4456-B5CE-2F16B5BC97F9}” source = static addr = oct1.oct2.y.100
add dns name = “{CE5BED69-35DA-4456-B5CE-2F16B5BC97F9}” addr = oct1.oct2.z.100
set wins name = “{CE5BED69-35DA-4456-B5CE-2F16B5BC97F9}” source = static addr = none
popd
# End of interface IP configuration