<?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>Use PowerShell and Active Directory Cmdlets to Update Users in Active Directory</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/10/14/use-powershell-and-active-directory-cmdlets-to-update-users-in-active-directory.aspx</link><description>Summary : Learn how to use Windows PowerShell and the Active Directory cmdlets to update user objects in Active Directory. 
 
 Hey, Scripting Guy! Watching you write a custom function to search Active Directory is about as much fun as watching paint</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use PowerShell and Active Directory Cmdlets to Update Users in Active Directory</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/10/14/use-powershell-and-active-directory-cmdlets-to-update-users-in-active-directory.aspx#3565150</link><pubDate>Wed, 10 Apr 2013 21:22:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3565150</guid><dc:creator>Rob Stagg</dc:creator><description>&lt;p&gt;I found it. &amp;nbsp;The day wasn&amp;#39;t COMPLETELY wasted... &amp;nbsp;To update the description field for anyone with a Title:&lt;/p&gt;
&lt;p&gt;Get-ADUser -filter * -searchbase &amp;quot;OU=test, OU=Users, dc=abc, dc=com&amp;quot; -Properties Description, Title | Where-Object {$_.Title -ne $null} | ForEach-Object {Set-ADObject -Identity $_.DistinguishedName -Replace @{Description=$($_.Title)}}&lt;/p&gt;
&lt;p&gt;Whew! &amp;nbsp;I&amp;#39;ll be able to sleep tonight.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3565150" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell and Active Directory Cmdlets to Update Users in Active Directory</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/10/14/use-powershell-and-active-directory-cmdlets-to-update-users-in-active-directory.aspx#3565103</link><pubDate>Wed, 10 Apr 2013 18:37:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3565103</guid><dc:creator>Rob Stagg</dc:creator><description>&lt;p&gt;Here&amp;#39;s a simple one for you. &amp;nbsp;How do I set a user&amp;#39;s description to equal his title? &amp;nbsp;I&amp;#39;m really new to this and it&amp;#39;s driving me nuts!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3565103" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell and Active Directory Cmdlets to Update Users in Active Directory</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/10/14/use-powershell-and-active-directory-cmdlets-to-update-users-in-active-directory.aspx#3493248</link><pubDate>Thu, 19 Apr 2012 19:27:46 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3493248</guid><dc:creator>Bill Blount</dc:creator><description>&lt;p&gt;One other way to modify the Description attribute is to modify the attribute on the $user object and then use the -Instance parameter with Set-ADUser.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;If ($user.Description -eq $null) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp;$user.Description = &amp;quot;added via script&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Set-ADUser -Instance $user&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3493248" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell and Active Directory Cmdlets to Update Users in Active Directory</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/10/14/use-powershell-and-active-directory-cmdlets-to-update-users-in-active-directory.aspx#3362221</link><pubDate>Fri, 15 Oct 2010 12:07:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3362221</guid><dc:creator>@Derek Hanson</dc:creator><description>&lt;p&gt;Yes, I know how to do it. I wanted to perform Global Catalog search for a user and update it in a pipe using Active Directory module. Updating thousands of user accounts located in different domains within one forest is easier using Exchnange 2010 cmdlets.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;This command will succeed (Exchange snap-in):&lt;/p&gt;
&lt;p&gt;Get-User -Filter &amp;quot;Name -eq &amp;#39;Serge Nikalaichyk&amp;#39;&amp;quot; -IgnoreDefaultScope | Set-User -City Minsk&lt;/p&gt;
&lt;p&gt;While this command will fail (AD module):&lt;/p&gt;
&lt;p&gt;Get-ADUser -Filter {Name -eq &amp;quot;Serge Nikalaichyk&amp;quot;} -SearchBase &amp;quot;&amp;quot; -Server &amp;quot;dc01.mycompany.com:3268&amp;quot; | Set-ADUser -City Minsk&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3362221" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell and Active Directory Cmdlets to Update Users in Active Directory</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/10/14/use-powershell-and-active-directory-cmdlets-to-update-users-in-active-directory.aspx#3362004</link><pubDate>Thu, 14 Oct 2010 15:46:33 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3362004</guid><dc:creator>Derek Hanson</dc:creator><description>&lt;p&gt;@Serge Nikalaichyk&lt;/p&gt;
&lt;p&gt;You can do this by connecting to specific domain controllers via the -server parameter in the get-aduser and set-aduser cmdlets.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3362004" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell and Active Directory Cmdlets to Update Users in Active Directory</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/10/14/use-powershell-and-active-directory-cmdlets-to-update-users-in-active-directory.aspx#3361942</link><pubDate>Thu, 14 Oct 2010 11:24:23 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3361942</guid><dc:creator>Serge Nikalaichyk</dc:creator><description>&lt;p&gt;That&amp;#39;s OK, but how can I find and update domain user accounts in different domains within single Active Directory forest?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3361942" width="1" height="1"&gt;</description></item></channel></rss>