Scripting Blog [archived]

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

Hey, Scripting Guy! Weekend Scripter: Getting Closure with the GetNewClosure Method

  Microsoft Scripting Guy Ed Wilson here. The first weekend after vacation—ah! During my one-on-one meeting with my manager this past week, Steve asked me, “How is it going?” I replied, “I need a vacation from my vacation.” That tends to be the rule with me rather than the exception. I seldom get to vacate on...

Hey, Scripting Guy! How Can I Handle Errors in a Windows PowerShell Script?

 (image) Hey Scripting Guy! When I used to write VBScripts, I liked the fact that I could use On Error Resume Next to handle any errors in my scripts. I have tried to find something like this in Windows PowerShell, but I have been unable to do so. Does Windows PowerShell have On Error Resume Next? -- OG (image) Hello OG, When I am ...