|Version 2 (modified by tborger, 5 years ago) (diff)|
Remote and managed Update/Install? or check of NSClient++ via psexec and VBScript
You can use the attached VBScript to install, check or update a NSClient++ Version on all your Windows hosts.
1.) one Domain Administrator account which is able to manage all windows based clients 2.) a server share which store's the new NSClient++ Version as unpacked zip archive. 3.) a configuration file where the definitions from each windows server is configured
psexec ist started from my admin pc.
psexec @c:\tmp\nsclient_updates.txt -u [DOMAIN]\[admin] -p [password] cscript \\server6\share1\NSClient++\nsclient_update.vbs //nologo /S:\\server6\share1\NSClient++ /v:0.3.4 /c:\\server6\share1\Nagios\servers.txt
Where a) @c:\tmp\nsclient_updates.txt
is a simple text file with one servername per line which is used through psexec
server6\share1\NSClient++\nsclient_update.vbs the VBScript that install/update NSClient on each server in a)
server6\share1\NSClient++ server share where the server which should be updatet should get the new NSClient++ version
d) /v:0.3.4 the new NSClient++ version
server6\share1\Nagios\servers.txt a simple text file which syntax is explained in the file itself.
servernama1:Y:N servername1 = name of server which should be updated or installed
Y = should the existing NSC.ini file to keep?
N = should the existing "scripts" folder to keep
The VBScript and the config file "servers.txt" are attached here.