How to Use Try/Catch/Finally for Non-Terminating Errors

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell and Try/Catch/Finally for non-terminating errors. Microsoft Scripting Guy, Ed Wilson, is here. Today I want to present a video about using Windows PowerShell Try/Catch/Finally with non-terminating errors—that is, Windows PowerShell can progress past the errors when they occur to the next line of code….


Understanding Two Types of PowerShell Errors—The Video

Summary: In this video, Ed Wilson, Microsoft Scripting Guy, talks about two types of Windows PowerShell errors. Microsoft Scripting Guy, Ed Wilson, is here. Today I want to present a video I made about structured error handling, in specific, about terminating errors. Note  For more information, refer to Error Handling: Two Types of Errors. Here…


Understanding Non-Terminating Errors in PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about understanding non-terminating errors in Windows PowerShell.  Hey, Scripting Guy! Yesterday in Error Handling: Two Types of Errors, you were talking about terminating errors and how you can use Try/Catch/Finally with those, but you did not really say what a non-terminating error is. Can you talk about that…


Error Handling: Two Types of Errors

Summary: Ed Wilson, Microsoft Scripting Guy, talks about error handling and two types of errors.  Hey, Scripting Guy! I really don’t get it. Everyone tells me I need to use Try/Catch/Finally to catch errors, but it simply won’t work. I am not sure if there is a bug in Windows PowerShell, but I wish you…


Catch PowerShell Errors Related to Reading the Registry

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Try, Catch, Finally blocks to catch Windows PowerShell errors related to reading the registry.  Hey, Scripting Guy! Yesterday you posted Update or Add Registry Key Value with PowerShell. Would it be easy to use Try, Catch, Finally blocks to know if I need to create the…


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

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 Active Directory and Windows…


2014 Winter PowerShell Scripting Games Wrap Up #2

Summary: Microsoft Scripting Guy, Ed Wilson, shares what he noticed while grading the 2014 Winter PowerShell Scripting Games entries. Microsoft Scripting Guy, Ed Wilson, is here. This morning things are a bit chilly around here. I am sipping a nice Assam Blatt tea that I got when I was in Hamburg on our last trip….


Clean Up Your PowerShell History to Remove Error Entries

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…


Simplify Your PowerShell Script with Parameter Validation

Summary: Learn how to simplify your Windows PowerShell Script by using parameter validation attribute. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, is here. I thought I would ask Glenn Sizemore to write today’s blog about parameter validation attributes. Glenn Sizemore is a technical marketing engineer in the Microsoft business unit at NetApp, where he combines…

24

PowerShell Error Handling and Why You Should Care

Summary: Learn how to use error handling in your Windows PowerShell scripts. Microsoft Scripting Guy, Ed Wilson, is here. Guest Blogger Week continues with Bhargav Shukla. Bhargav Shukla is a senior premier field engineer—unified communications, with his primary focus on the Exchange Server platform. Bhargav has been in IT since the beginning of his career…

19