Gal Ratner
Gal Ratner is a Techie who lives and works in Los Angeles CA and Austin TX. Follow galratner on Twitter Google
Add or remove an IP address from a remote server with netsh and pstools

Netsh.exe is a windows utility designed to help administrators perform operations using command prompt.

More on netsh here:

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:

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
Filed under: ,

Powered by Community Server (Non-Commercial Edition), by Telligent Systems