Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Create a Disk Space Report in a Word Document?

(image)     (image) Hey, Scripting Guy! We are having problems with several of our servers at work. Several of them were upgraded from Windows NT 4, and as a result, we are constantly running into disk space issues on the C: drive. I would rather manage the problem than take the servers down and rebuild them because we already have...

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 Use WMI to Set the Screen Saver Timeout Value on Workstations?

(image)     (image) Hey Scripting Guy! I have been trying to set the screen saver time out value on my workstations by using WMI. It is not working. Can you help me get WMI working?-- HR (image) Hello HR, Microsoft Scripting Guy Ed Wilson here. My teapot is empty. I was getting ready to head downstairs to fix me a ...

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! Does the Win32_Volume WMI Class Support Filtering on the Name Property?

(image)   (image) Hey, Scripting Guy! I have a problem using the Win32_Volume WMI class on my Windows Vista computer. I keep getting an error. I have searched the Internet using Bing and other search engines, but I cannot find the answer to my problem. It should be so simple; all I want to do is filter the results by the drive name in ...