Archive

Archive for the ‘VbScripts’ Category

Script to check if a windows patch is installed

June 14th, 2017 No comments

VBScript to check if a windows patch is installed on a server or PC

This a simple script that can be used if youn need to check if a specific patch is installed.

Read more…

Categories: VbScripts, Windows Tags: ,

check schedulle task nagios

February 3rd, 2017 No comments

Script to get failed schedulle jobs (plugin for Nagios/Centreon)
REQUIRES: schtasks.exe
Tested only Windows 2003

Read more…

Categories: Centreon, Nagios, plugins, script, VbScripts Tags:

vbs to list all local users of Adminisitrator

January 26th, 2017 No comments

VBS Script to list all local users of Adminisitrator and Remote Desktop,id,desctiption,enable/disable, last_login(if local)

Read more…

Windows Enumerate Servers

January 26th, 2017 No comments

Back to some VBS scripting…
This script enumerates all Servers on the current domain and test it with a ping then writes to a server.txt file.

Read more…

Categories: script, VbScripts, Windows Tags: , , , ,

vbs ftp sync script

September 11th, 2014 No comments

We are using this script with jenkins to deploy “upload” a specific folder to a remote FTP. I used the winscp.exe synchronize command for it.

Read more…

Categories: VbScripts Tags: , , ,

check iis cpu

September 5th, 2013 1 comment

This nagios plugin VBS script, gets exactly the amount of CPU a specific Aplication Pool is using, it helps a lot to identify witch site is using more CPU.
It was tested on Windows 2003 only.

Read more…

nagios check printer

August 20th, 2012 No comments

Script in vbs that will check if a printer is working correctly and is processing its Documents.
In case the same number of documents are in the Queue it will alert, this can be used in nagios
with a retry of 3 times each 2 min.

Read more…

Warn when password is about to expire

July 25th, 2012 1 comment

This script can be used to check if a user’s password is about to expire
and throws a popup windows alerting the user, and explaining to change the password.
By default it will start the popup when its 7 days or less to expire.

Read more…

check local administrator group

June 5th, 2012 No comments

We needed a way to know if anyone has added itself to the Local Administrator group on any servers.
So I wrote this script and setup on schedulle task to run each hour. In case any changes
happen on the Local Admins group and e-mail will be sent.

Read more…

vbs script to check services

December 15th, 2011 No comments

Script to check services, check_services.vbs
I tried developing it so the services could be passed via arguments, but
using check_nt (NC_Net) and vbscript I found it impossible when we came along
multiple arguments containing spaces, its a shame 🙁 Maybe someone out there has done it.
I know a SNMP plugin that does it and I use it, but some servers are in cluster and SNMP
checks dont work well.
Anyways here is the code ( hardcoded services are in an array)

Read more…

Categories: VbScripts Tags: , , , ,