The VBScript Network and Systems Administrator's Cafe:

Functions


April 13, 2009  3:18 PM

Finding the owner of a process remotely with VBScript via the Win32_process class



Posted by: Jerry Lees
Administration tools, Functions, System Administration, Systems Administration, VBScript, VBScript Functions, win32_process, Windows Management Interface, WMI

 Recently I had an issue where I needed to find the user running a series of processes on a large number of servers. Initially, it was a long process of logging onto each server then opening task manager and sorting by process name. After about 5 servers, I realized it was going to take hours to...

October 1, 2008  2:06 PM

Easy string manipulation with VBScript using the Replace Function



Posted by: Jerry Lees
Functions, Replace, String manipulation, VBScript, VBScript Functions

Recently, I had a situation at the office where I needed to check a web.config file for the existence of a setting. Not a hard problem-- just open the file up an look for it, however, that becomes a little harder when your talking about 30 servers. So, I scripted it using the replace...


September 13, 2008  11:11 PM

VBScript Statements: Explanation of the Function Statement



Posted by: Jerry Lees
Functions, VBScript, VBScript Functions, VBScript Statements

The Function statement creates a function and allows you to list the arguments (if any) which are to be passed into the function.   The major difference between a function and a subroutine, is that a function can return a value. To return a value you...


September 4, 2008  4:01 PM

Pinging a remote computer from another remote computer using the WMI Win32_PingStatus class in VBScript



Posted by: Jerry Lees
Development, Functions, monitoring, Networking, VBScript

I recently began working on trying to figure out ways to troubleshoot real problems with a VBScript and give me some diagnostic information about the current state of the environment. As I build this script I plan on sharing pieces of it bit by bit with you, my readers. I also wanted to get back to...


June 6, 2008  1:53 PM

A simple way to Write to the registry with VBScript



Posted by: Jerry Lees
Functions, regwrite, regwrite method, wscript.shell

Last time I posted I gave you a function that provided 

  Bookmark and Share     0 Comments     RSS Feed     Email a friend


May 14, 2008  8:58 PM

Getting disk usage data with the filesystem object and the Excel.Application object in VBScript



Posted by: Jerry Lees
Disk usage, Documentation, Excel.Application, File System Object, FSO, Functions, Scripting.FileSystemObject, system trending, VBScript

In my previous posting, entitled

  Bookmark and Share     0 Comments     RSS Feed     Email a friend


May 9, 2008  5:54 PM

VBScript Statements: Explanation of Select … Case



Posted by: Jerry Lees
Functions, VBScript, VBScript Statements, vbscriptstatements

The Select ... Case VBScript statement is a very powerful way to easily preform specific actions based on a comparison of a variable to a series of cases you specify, plus it allows for the fact that NONE of the cases apply with an optional case else...


May 2, 2008  4:15 PM

Document group policy objects in Microsoft Word using VBScript



Posted by: Jerry Lees
DataManagement, Documentation, Functions, Microsoft.XMLDOM, VBA, VBScript, Word.application, XML

OK, here is the posting I hinted at in my previous posting this week entitled,

Bookmark and Share     0 Comments     RSS Feed     Email a friend


April 25, 2008  1:26 AM

Reporting CPU usage by saving it to a file with the VBScript filesystem object



Posted by: Jerry Lees
Error control, File System Object, Functions, Scripting.FileSystemObject, VBScript

Last time, in my entry entitled

  Bookmark and Share     2 Comments     RSS Feed     Email a friend


April 17, 2008  8:52 PM

Creating text files using the Scripting.FileSystemObject with VBScript



Posted by: Jerry Lees
File System Object, FSO, Functions, Log files, Scripting.FileSystemObject, VBScript

Well, I didn't expect the cat to get out of the bag quite so quickly! (Congratulations go out to Stoinov 


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: