
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Error checking in PowerShell</title>
	<atom:link href="http://www.leadfollowmove.com/archives/powershell/error-checking-in-powershell/feed" rel="self" type="application/rss+xml" />
	<link>http://www.leadfollowmove.com/archives/powershell/error-checking-in-powershell</link>
	<description>Adam Bell on Deployment, Automation, PowerShell et al</description>
	<lastBuildDate>Thu, 25 Feb 2010 23:14:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Lex Mangin</title>
		<link>http://www.leadfollowmove.com/archives/powershell/error-checking-in-powershell/comment-page-1#comment-734</link>
		<dc:creator>Lex Mangin</dc:creator>
		<pubDate>Fri, 03 Oct 2008 17:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/archives/powershell/error-checking-in-powershell#comment-734</guid>
		<description>Hi,

I added this in my code, after and $user.setinfo() command, but the error is not caught.

Can you help?

Lex 


...rest of script....

$GetUser.setinfo()
	
	if (!$?)
	{
		Write-Host &quot;The is an Error in this code&quot;
	}
	Else
	{
		Write-Host &quot;There is NO Error in this code&quot;
	}</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I added this in my code, after and $user.setinfo() command, but the error is not caught.</p>
<p>Can you help?</p>
<p>Lex </p>
<p>&#8230;rest of script&#8230;.</p>
<p>$GetUser.setinfo()</p>
<p>	if (!$?)<br />
	{<br />
		Write-Host &#8220;The is an Error in this code&#8221;<br />
	}<br />
	Else<br />
	{<br />
		Write-Host &#8220;There is NO Error in this code&#8221;<br />
	}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

