Scripting Blog [archived]

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

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. (image)  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...