<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (8/7/09)</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/08/07/hey-scripting-guy-quick-hits-friday-the-scripting-guys-respond-to-a-bunch-of-questions-8-7-09.aspx</link><description>Does Windows PowerShell Let Me Trap Errors? 
 
 Hey Scripting Guy! Does Windows PowerShell have the ability to trap errors? 
 -- JP 
 
 
 Hello JP, 
 Yes, it does. Here is an example of using the trap statement in a script. 
 DemoTrapSystemException</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (8/7/09)</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/08/07/hey-scripting-guy-quick-hits-friday-the-scripting-guys-respond-to-a-bunch-of-questions-8-7-09.aspx#3360362</link><pubDate>Wed, 06 Oct 2010 18:51:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3360362</guid><dc:creator>rob</dc:creator><description>&lt;p&gt;man, i really wish you&amp;#39;d mentioned how not to get registry permission errors in the first place. i can&amp;#39;t for the life of me figure that out today. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3360362" width="1" height="1"&gt;</description></item></channel></rss>