The VBScript Network and Systems Administrator's Cafe:

Microsoft Windows


January 30, 2009  1:30 AM

Easy String Searches with the VBScript Instr function



Posted by: Jerry Lees
InStr function, Scripting, string, String manipulation, strings, VBScript

I recently had a situation where I needed to find string inside a string to parse the larger string into usable and separate chunks of data. In writing this script, I realized I've not shared this gem of a function with you previously... and it really makes matters easier when you are...

January 23, 2009  7:21 PM

Tip: Searching Google for solutions to a Microsoft product problem



Posted by: Jerry Lees
google, KB articles, Microsoft, Microsoft Knowledgebase, searching google, tips and tricks, troubleshooting

Maybe this isn't earth shattering, and most all of you already know this trick. However, I just stumbled upon it and am willing to bet at least a few people are troubled by searching google for answers to problems and finding the needle in the haystack. Here's the scenario:\ You're looking for...


January 19, 2009  4:14 AM

Windows Tip: Clearing Internet Explorer cached data from the command line



Posted by: Jerry Lees
batch commands, batch files, command line, Internet Explorer, rundll.exe, tips and tricks, undocumented windows, windows secrets, windows tips

As a Network Administrator sometimes you need to clear the browsing history, cookies, or the like for a entire community of users. Sure, you could tell them how to do it thinking that you were being super smart by providing instructions for them. However, as you well know there will be some who...


January 12, 2009  1:46 AM

Windows Tip: Moving a window from off screen back into view



Posted by: Jerry Lees
tips and tricks, windows tips

If you've ever hooked up your laptop to a secondary monitor and then disconnected without remembering to move the windows back to the primary desktop, you've probably encounted this problem:  The application is running. You can see it in the taskbar, but you can't see it on the screen, because...


January 5, 2009  2:03 AM

Retrieve environment variable values from a remote system with WMI



Posted by: Jerry Lees
Environment Variables, PATH variable, Remote management, System Administration, VBScript, Win32_Environment, Windows Management Interface, WMI

Back in October I shared with you a way to retrieve environment variables with a script titled

Bookmark and Share     1 Comment     RSS Feed     Email a friend


January 2, 2009  3:01 AM

Searching the Windows Eventlog for specific events with WMI



Posted by: Jerry Lees
Systems Administration, systems management, VBScript, Win32_NTLogEvent, Windows Management Interface, WMI

On occasion as a systems administrator you have to find the proverbial needle in the haystack with respect to the events in the event logs. You know what I mean, the one event you care about and need to know when it occured as part of your troubleshooting... then throw in that you need to do it in...


December 26, 2008  2:42 PM

Fun with the Registry: Saving ODBC Entries from a server (and moving them to a new server)



Posted by: Jerry Lees
fun with the registry, migrate ODBC entries, migrating a web server, ODBC, ODBC entries, rebuilding a webserver, registry, Web applications, webmaster

On occasion you have to rebuild servers, some are worse than others to rebuild. Much like my previous post on

Bookmark and Share     0 Comments     RSS Feed     Email a friend


December 18, 2008  12:06 AM

Fun with the registry: Saving shares and share permissions from a server (and moving them to a new server)



Posted by: Jerry Lees
File Server, File Shares, fun with the registry, Lanmanserver, Migrating Servers, registry, tips and tricks

On occasion you have to rebuild servers, some are worse than others to rebuild. File Servers are not that difficult to rebuild, but one of the tedious tasks in moving a file server is setting up all the shares that have been added over time all at once. you know the drill:

Point....


December 4, 2008  9:22 PM

Using WMI’s WIN32_Process class to remotely kill a process



Posted by: Jerry Lees
kill, kill process, Kill processes, pkill, VBScript, win32_process

Recently I had a situation where I had to kill a number of processes on a number of servers in a short period of time so we could update the executable file quickly so the processes could be safely respawned. This presented a challenge because it needed to be done quickly both before users...


November 10, 2008  4:01 AM

Getting the date and time from a remote system via WMI and the WIN32_LocalTime class



Posted by: Jerry Lees
date, systems management, VBScript, win32_localtime

Recently, after the time change I had to log into around 30 to 40 servers to check that the date was correct. This was a real pain, since it required me to actually log onto the server via terminal services and run a command prompt to issue a date command. Unfortunately, I didn't have a script...