Sunday, June 25, 2006

Handy VBScript Functions for Windows System Administrators

This is a list of the VBScript functions I have written throughout the months and years. I will be updating this periodically as I write and post more code. The following is a list of all of the posts I have made and code I have published. They are all VBScript functions written primairly for Windows 2000/2003 Server though most will work with other Windows OSes too.

Click the notepad for a plain text copy of the function. Click the function name for the entry describing the function in more detail. If this is the first time you have seen these functions or are a novice VBScripter, I highly recommend reading the article describing their use before you use them in scripts of your own. Though I tried to write them as simply and straight forwardly as possible, the blog posts will have more detail explaining their usage, why I wrote them, and for what intent they were created.

Feel free to use these scripts for any non commercial purposes, though if you'd like to use them for any commercial purposes or in software you will be re-distributing I ask that you email me first and ask permission. The official liscense can read at the following Creative Commons URL: http://creativecommons.org/licenses/by-nc/2.5/

9 VBScript Functions

Networking

SNMPGET - Simple way of pulling SNMP data from SNMP enabled network devices.
SNMPWALK - More complex way of pulling SNMP data. Pull data from every sub key in an OID.
GETFROMSNMPWALK - Simple parsing of the SNMPWALK function.
ISPINGABLE - Ping a network device and return TRUE or FALSE as to whether it's online.

File Management

RNDFILENAME - Generate a random 8.3 filename.
TEMPFILE - Generate a random 8.3 filename and make sure it doesn't already exist in the temp folder.
COPY - Copy a file or folder from one place to the other. Returns TRUE if successful, otherwise the error message.

Server Management

GetVirusDefDate - Remotely retrieve the currently installed Symantec Anti-Virus definition version.

Other

READABLEBYTES - Turn a byte value into a human readable string.

.
Send this to:                          

Comments

fred said...

24858200

9/25/2007 9:50:27 AM

said...

I would like to have permission to use the functions RndFileName() and TempFile() in a release script that allows users of our software to save from a free PDF program.

4/26/2010 5:57:00 AM

Name
URL
Email
Email address is not published
Remember Me
Comments

CAPTCHA
Write the characters in the image above