Archive

Posts Tagged ‘vbs’

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

script to check event viewer

October 6th, 2011 No comments

I have written similar script to check for a single server but this time
it scans a list of server.
It still not integrated with nagios because of the time it takes to execute
such script.
It does requires 7z.exe and dumpel.exe

Read more…

Nagios plugin to check folder

August 1st, 2011 No comments

This plugin object is to check if a file has been inside certain folder
for a period of time and alert if so.

Read more…