| 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.
Requirements:
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
Example:
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
b) cscript
server6\share1\NSClient++\nsclient_update.vbs
the VBScript that install/update NSClient on each server in a)
c) /S:
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
f) /c:
server6\share1\Nagios\servers.txt
a simple text file which syntax is explained in the file itself.
example line:
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.
Attachments (3)
- servers.txt (823 bytes) - added by tborger 5 years ago.
- server.txt (1017 bytes) - added by tborger 5 years ago.
- nsclient_updateV2.vbs (24.0 KB) - added by tborger 5 years ago.
Download all attachments as: .zip








