Quantcast
Channel: The VBScript Network and Systems Administrator's Cafe » Functions
Browsing all 10 articles
Browse latest View live

Creating text files using the Scripting.FileSystemObject with VBScript

Well, I didn’t expect the cat to get out of the bag quite so quickly! (Congratulations go out to Stoinov for getting the correct answer I was thinking of so very quickly!) So while he’s been sleeping...

View Article



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

Last time, in my entry entitled VBScript to check CPU and Processor performance counter statistics using WMI, I asked you to modify the code I gave to include the access method type in the function. If...

View Article

Document group policy objects in Microsoft Word using VBScript

OK, here is the posting I hinted at in my previous posting this week entitled, Using VBScript to create Word documents automatically with the Word.Application Object. In that posting I mentioned a...

View Article

VBScript Statements: Explanation of Select … Case

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...

View Article

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

In my previous posting, entitled Working with the Excel.Application object in VBScript to create Excel Spreadsheets, we worked with excel in VBScript to create a excel spreadsheet. The spreadsheet...

View Article


A simple way to Write to the registry with VBScript

Last time I posted I gave you a function that provided A simple way to read the registry with VBScript, in this posting we’ll use the same Wscript.shell object as last time, just use a different...

View Article

Pinging a remote computer from another remote computer using the WMI...

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...

View Article

VBScript Statements: Explanation of the Function Statement

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...

View Article


Easy string manipulation with VBScript using the Replace Function

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...

View Article


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

 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...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>