Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! Can I Use Windows PowerShell 2.0 for Performance Monitoring?

(image)    (image) Hey, Scripting Guy! I love using performance monitor. I was a big fan of it back in the Windows NT 4.0 days, and I have been using it ever since. It seems, however, that beginning with Windows Vista you people have messed it up. In trying to make it easier for a clueless individual to use, you have absolutely ...

Hey, Scripting Guy! Can I Call WMI Methods More Easily with Windows PowerShell 2.0?

 (image)   (image) Hey, Scripting Guy! I enjoy working with WMI, but it can be a bit complicated to make it do anything. It is great at retrieving information, and in conjunction with the Windows PowerShell Get-WMIObject cmdlet, it is really easy to obtain lots of information about our servers. In fact, WMI is one of the ...

Hey, Scripting Guy! How Can I Ensure My Scripts Won’t Fail on Various Windows Operating Systems?

(image)  (image) Hey, Scripting Guy! I have a mixture of operating systems at work. We have Windows XP on the desktop, a few Windows Vista machines, Windows 7 on a few computers so far, Windows 2003 in the server room, and Windows 2008 and a couple of Windows 2008 R2 computers that are running Hyper-V on Windows Core edition. I know ...

Hey, Scripting Guy! How Can I Change Browser History Settings via the Registry?

(image)   (image) Hey, Scripting Guy! Awhile back, I visited a really cool Web site (not yours), but I did not save it as a favorite. The site does not show up in my History folder. Is there any way I can use a script to retrieve this information? By the way, I enjoy reading about you in your opening stories. If I do not hear from ...

Hey, Scripting Guy! Can I Use the Registry to Retrieve a List of the Most Recently Run Programs?

(image)   (image) Hey, Scripting Guy! When I work on a computer, I often run many commands. I generally use Run from the Start menu to launch these programs. When I am finished, I use a script I copied from the Scripting Guys archive to display all the commands that I ran and then I save them in a Notepad file. However, that script...