napr cez netsh

priklad:
netsh exec test

test je subor s obsahom napr:
#========================
# Interface configuration
#========================
pushd interface

reset all


popd
# End of interface configuration



# ----------------------------------
# Interface IP Configuration
# ----------------------------------
pushd interface ip


# Interface IP Configuration for "Local Area Connection"

set address name = "Local Area Connection" source = static addr = 10.0.0.1 mask = 255.255.0.0
set address name = "Local Area Connection" gateway = 10.0.0.138 gwmetric = 1
set dns name = "Local Area Connection" source = static addr = none
set wins name = "Local Area Connection" source = static addr = none


popd
# End of interface IP configuration


===
najlepsie je cez netsh si urobit dump toho na co to potrebujes menit a ulozit si to do suboru, spusti si len tak netsh z command promtu a ked si tema pobehas tak to uvidis