Quantcast
Channel: Spiceworks Community
Browsing all 3 articles
Browse latest View live

Error handling for registry changes

With Try/Catch it is my understanding that the Catch block has to do something with the error. What exactly? I see all kind of examples but I don't get what the code in that block does. Does it just...

View Article



Error handling for registry changes

Powershelltry{#single or multiple commands go here}catch{# catch any TERMINATING errors that the code int he try block generates}So you could wrap each statement in its own try/catch block or wrap them...

View Article

Error handling for registry changes

"I don't get what the code in that block does"It does whatever you want it to do,when an error occurs.  Maybe you want to log it, maybe you want to display a message, maybe it corrects an issue."Does...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images