Netsh.exe is a windows utility designed to help administrators perform operations using command prompt.
More on netsh here: http://support.microsoft.com/kb/242468
PStools is an optional suit of components design for remote operations. Using PsExec you can invoke commands or programs on remote computers.
You can download it from here:
http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx
Now let’s use both to add an IP address to a remote computer:
-accepteula -e -i \\serverName netsh in ip add address ConnectionName IPAddress subnetMask
Removeing it will look like:
-accepteula -e -i \\serverName netsh interface ip delete address name="ConnectionName" addr=IPAddress
Posted
29 Jul 2009 3:41 PM
by
Gal Ratner