<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/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>PowerShell General</title><link>http://powershell.com/cs/forums/230.aspx</link><description>Moderated by PowerShell MVP &lt;a href="http://powershell.com/cs/content/experts.aspx#thomas-lee"&gt;Thomas Lee&lt;/a&gt; and PowerShell expert  &lt;a href="http://powershell.com/cs/content/experts.aspx#jakub-jares"&gt;Jakub Jareš&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Re: Set attribute for users in an OU - retrieve value but set fails?</title><link>http://powershell.com/cs/forums/thread/16044.aspx</link><pubDate>Thu, 19 Apr 2012 13:41:51 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16044</guid><dc:creator>Don Jones</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16044.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=230&amp;PostID=16044</wfw:commentRss><description>&lt;p&gt;So, it looks to me like you&amp;#39;re doing everything right - maybe it&amp;#39;s a bug in the Set cmdlet? Which would be unfortunate. You might consider posting in the AD forum here to see if there&amp;#39;s maybe an alternate approach...?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Set attribute for users in an OU - retrieve value but set fails?</title><link>http://powershell.com/cs/forums/thread/16035.aspx</link><pubDate>Thu, 19 Apr 2012 06:26:30 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16035</guid><dc:creator>virtuallynothere</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16035.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=230&amp;PostID=16035</wfw:commentRss><description>&lt;p&gt;I am trying to set a virtual attribute that currently exists for all users in a specific OU.&lt;/p&gt;
&lt;p&gt;I can retrieve the attribute value and user name fine using the command below, but then I tried to set the value and that fails in the command below, and also in the script below. I&amp;#39;m trying to get help on the quest forum, seems hard to get help there, so I&amp;#39;m trying here.&lt;/p&gt;
&lt;p&gt;This retrieves the user name and value of the edsva attrib&lt;/p&gt;
&lt;p&gt;&lt;span&gt;get-qaduser -searchroot &amp;quot;ou=test,dc=headache,dc=local&amp;quot; -DontUseDefaultIncludedProperties -IncludedProperties edsvadeprovisiondeletiondate | Select-Object name, edsvadeprovisiondeletiondate&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is supposed to set the virtual attrib for a user account, I&amp;#39;ve tried specifying a name and it fails the same as it does if I try to pipe the commands above to this one.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Set-QADUser -objectsAttributes @{&amp;#39;edsvadeprovisiondeletiondate&amp;#39;=&amp;#39;4/18/2012 12:00:00 AM&amp;#39;}&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;This script fails and it looks like its the same error as above..&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#Connect-QADService -service server.longnight.local -proxy&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Get-QADUser -SizeLimit 0 -searchroot &amp;quot;ou=test,dc=longnight,dc=local&amp;quot; -DontUseDefaultIncludedProperties -IncludedProperties edsvadeprovisiondeletiondate | ForEach-Object{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;$Olddate = Get-QADUser $_.edsvadeprovisiondeletiondate&lt;/span&gt;&lt;br /&gt;&lt;span&gt;$newdate = &amp;quot;4/18/2012 10:00:00 PM&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Set-QADUser $_ -proxy -objectAttributes @{edsvadeprovisiondeletiondate=$newdate}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;}&amp;nbsp;&lt;/span&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>