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:
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