Showing results for error handling - Scripting Blog [archived]

Jul 5, 2014
Post comments count0
Post likes count0

Weekend Scripter: Using Try, Catch, Finally Blocks for PowerShell Error Handling

Doctor Scripto
Doctor Scripto

Summary: Microsoft PFE, Ashley McGlone, talks about using Try, Catch, Finally blocks for error handling in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Today’s guest blogger is Ashley McGlone, a Microsoft premier field engineer. Ashley is a popular speaker at our Windows PowerShell Saturday events. He regularly blogs about...

Scripting Guy!Windows PowerShellscripting techniques
Feb 11, 2013
Post comments count0
Post likes count0

Clean Up Your PowerShell History to Remove Error Entries

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to remove all error commands from your Windows PowerShell command history. Microsoft Scripting Guy, Ed Wilson, is here. One of the great things about being involved with a Windows PowerShell user group is all the great people I meet and all the cool ideas that arise. It seems that every time I ...

Scripting Guy!Windows PowerShellscripting techniques
Aug 26, 2010
Post comments count0
Post likes count0

Query Active Directory with PowerShell and Run WMI Commands

ScriptingGuy1
ScriptingGuy1

Summary: Use Windows PowerShell to Query Active Directory for computers and then run WMI commands on the remote machines. The Scripting Guys show you how.   Hey, Scripting Guy! We have a major problem at my company. We have a standard corporate desktop we are deploying by using the Windows Deployment tool kit. That part is going well, ...

Scripting Guy!Windows PowerShellscripting techniques
Aug 25, 2010
Post comments count1
Post likes count0

Query Active Directory and Ping Each Computer in the Domain by Using PowerShell

ScriptingGuy1
ScriptingGuy1

Summary: Query Active Directory and ping each computer in the domain by using Windows PowerShell. The Scripting Guys show you how.   Hey, Scripting Guy! I am THE IT person at my company. I am also a chemical engineer who has daily production responsibilities in our process plant. You see, I am supposed to be a part-time IT person, the problem...

Scripting Guy!Windows PowerShellscripting techniques
Mar 11, 2010
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Try/Catch/Finally in Windows PowerShell?

ScriptingGuy1
ScriptingGuy1

  Hey, Scripting Guy! One thing I miss in Windows PowerShell is the ability to use a Try/Catch/Finally block that I can use in C#. To me it is an elegant solution to error handling. You attempt something, catch any resulting errors, and clean up the mess you made. Are there any plans in Windows PowerShell 3.0 to introduce this kind of str...

Scripting Guy!Windows PowerShellscripting techniques