<?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: How to clear the mail attribute using PowerShell</title>
	<atom:link href="http://www.flobee.net/how-to-clear-the-mail-attribute-using-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flobee.net/how-to-clear-the-mail-attribute-using-powershell/</link>
	<description>The consequence of not having six hydrocoptic marzelvanes.</description>
	<lastBuildDate>Thu, 01 Dec 2011 16:35:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: mygoo0ool</title>
		<link>http://www.flobee.net/how-to-clear-the-mail-attribute-using-powershell/comment-page-1/#comment-1829</link>
		<dc:creator>mygoo0ool</dc:creator>
		<pubDate>Mon, 28 Feb 2011 20:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.flobee.net/?p=409#comment-1829</guid>
		<description>Yatta \o/ !! Thank you very much for your post ;)</description>
		<content:encoded><![CDATA[<p>Yatta \o/ !! Thank you very much for your post <img src='http://www.flobee.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirt Carson</title>
		<link>http://www.flobee.net/how-to-clear-the-mail-attribute-using-powershell/comment-page-1/#comment-1109</link>
		<dc:creator>Kirt Carson</dc:creator>
		<pubDate>Tue, 04 May 2010 14:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.flobee.net/?p=409#comment-1109</guid>
		<description>Thank you very much.  Already spent a day before finding it.  I made a tweak to your code so that I can pick the attribute to clear. Just provide DN and property to clear.

Function Clear_Property { 
If (($args[0]).length -gt 1) { 
$userDN = $args[0] ; $Prop2clear = $args[1]
$ldapDN = &quot;LDAP://&quot; + $userDN
$adUser = New-Object DirectoryServices.DirectoryEntry $ldapDN
$adUser.PutEx(1, $Prop2clear, $null)
$adUser.SetInfo() 
&quot;Cleared the value of $Prop2clear in the account $userDN&quot; } 
If (($args[0]).length -lt 2) { 
&#039;Usage:  Clear_Property  $DN $Property2Clear&#039; }
}

Thanks,
Kirt Carson</description>
		<content:encoded><![CDATA[<p>Thank you very much.  Already spent a day before finding it.  I made a tweak to your code so that I can pick the attribute to clear. Just provide DN and property to clear.</p>
<p>Function Clear_Property {<br />
If (($args[0]).length -gt 1) {<br />
$userDN = $args[0] ; $Prop2clear = $args[1]<br />
$ldapDN = &#8220;LDAP://&#8221; + $userDN<br />
$adUser = New-Object DirectoryServices.DirectoryEntry $ldapDN<br />
$adUser.PutEx(1, $Prop2clear, $null)<br />
$adUser.SetInfo()<br />
&#8220;Cleared the value of $Prop2clear in the account $userDN&#8221; }<br />
If (($args[0]).length -lt 2) {<br />
&#8216;Usage:  Clear_Property  $DN $Property2Clear&#8217; }<br />
}</p>
<p>Thanks,<br />
Kirt Carson</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustav Petersson</title>
		<link>http://www.flobee.net/how-to-clear-the-mail-attribute-using-powershell/comment-page-1/#comment-1089</link>
		<dc:creator>Gustav Petersson</dc:creator>
		<pubDate>Sat, 17 Apr 2010 14:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.flobee.net/?p=409#comment-1089</guid>
		<description>Thanks a trillion! Saved me a day and a half!</description>
		<content:encoded><![CDATA[<p>Thanks a trillion! Saved me a day and a half!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

