Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Speed Up My Windows PowerShell Scripts?

 (image) Hey Scripting Guy! I am not sure why you are so excited about Windows PowerShell. It is much slower than VBScript. I am not talking about a little slow; I am talking about orders of magnitude slower. Sure it has some nice cmdlets, but the performance is sucking fumes. -- LM(image) Hello LM, It is no secret that Windows ...

Hey, Scripting Guy! How Can I Test a Bunch of Scripts and Generate a Report?

 (image) Hey Scripting Guy! At our company, we have a lot of Windows PowerShell scripts we use to gather information from various client computers distributed throughout the network. All of these scripts are in a single folder. Recently, several users have been reporting that these scripts are causing them problems, and they have been ...

Hey, Scripting Guy! How Can I Ensure That Users Submit Only Allowed Values for Script Parameters?

 (image) I have a script that I wrote for the help desk people. It is actually a pretty cool script because it lets the user of the script type in a WMI class name, and it connects to the remote computer and retrieves all the information from the particular WMI class that they typed. The problem is that some of the help desk people do not...

Hey, Scripting Guy! How Can I Verify Input Received from the Command Line?

 (image) I am the script writer at my company, and I have really been enjoying your articles on Windows PowerShell. I have begun the process of converting some of our old VBScripts to Windows PowerShell, and all of my new scripts are written in Windows PowerShell. Because I am the only one who writes scripts at my company (in fact, I am ...