Hello,
i need a script to install nsclient agent in 50 windows 2003-2008 servers.
the script must get a server name from txt file in this form:
server1
server2
server3
server4
....
in certain server, i have an old nsclient agent installed, so i need to uninstall it an install a new agent.
the script must do this:
if old agent exist==>
1- stop nsclient agent (agent is located in c:\nsclient), the command to stop agent is: nsclient++.exe /stop
2-uninstall agent (agent is located in c:\nsclient) nsclient++.exe /uninstall
3-delete c:\nsclient folder
4-copy the new folder from a network share to "c:\"
5-install the new agent from the folder (c:\nsclient) ==>nsclient++.exe /install
6-start nsclient++ service ==>nsclient++.exe /startn
i need a small report after the execution of script to coonfirm the good install of agent.
thanks for help
So no new script, but I've messed with remoting before, and it can be a little bit frustrating at times because you also have to set it up on every client/server you want to connect to.
Here's some info on PsExec. I haven't gone that route but this may be something you can do.
http://technet.microsoft.com/en-us/sysinternals/bb897553
Again, you're going to have to play around with this to get either way to work. Just running a command remotely like "ipconfig" will be a challenge IMO and to get there you'll probably benefit from looking up some documentation on top of what I've already provided.
HTH,
Dale Harris