<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Update AD from CSV</title>
	<atom:link href="http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/</link>
	<description>Dmitry Sotnikov's view on PowerShell, PowerGUI and everything he sees around</description>
	<lastBuildDate>Thu, 23 May 2013 04:05:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Joe</title>
		<link>http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/#comment-7928</link>
		<dc:creator><![CDATA[Joe]]></dc:creator>
		<pubDate>Thu, 04 Apr 2013 14:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=697#comment-7928</guid>
		<description><![CDATA[Worked great, Thanks]]></description>
		<content:encoded><![CDATA[<p>Worked great, Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Sotnikov</title>
		<link>http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/#comment-7524</link>
		<dc:creator><![CDATA[Dmitry Sotnikov]]></dc:creator>
		<pubDate>Wed, 25 Jul 2012 02:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=697#comment-7524</guid>
		<description><![CDATA[Nathalie,

I am no longer with the team, so I would recommend that you post the question as well as your sample CSV to the AD cmdlets forum here: http://communities.quest.com/community/activeroles?view=discussions

You can always try to add ForEach and see if it helps, e.g.:

Import-Csv c:\update.csv &#124; ForEach-Object { Set-QADUser -Identity  $_.sAMAccountName -Title $_.Title }

Dmitry]]></description>
		<content:encoded><![CDATA[<p>Nathalie,</p>
<p>I am no longer with the team, so I would recommend that you post the question as well as your sample CSV to the AD cmdlets forum here: <a href="http://communities.quest.com/community/activeroles?view=discussions" rel="nofollow">http://communities.quest.com/community/activeroles?view=discussions</a></p>
<p>You can always try to add ForEach and see if it helps, e.g.:</p>
<p>Import-Csv c:\update.csv | ForEach-Object { Set-QADUser -Identity  $_.sAMAccountName -Title $_.Title }</p>
<p>Dmitry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/#comment-7522</link>
		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Tue, 24 Jul 2012 15:49:17 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=697#comment-7522</guid>
		<description><![CDATA[Hi Dmitry

I tried your script Import-Csv c:\update.csv &#124; Set-QADUser -Identity { $_.sAMAccountName } but it return argument invalid for Identity what is wrong with me

Nathalie]]></description>
		<content:encoded><![CDATA[<p>Hi Dmitry</p>
<p>I tried your script Import-Csv c:\update.csv | Set-QADUser -Identity { $_.sAMAccountName } but it return argument invalid for Identity what is wrong with me</p>
<p>Nathalie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogs for Technological Boniks - Update the information of domain users by CLI or Powershell</title>
		<link>http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/#comment-7495</link>
		<dc:creator><![CDATA[Blogs for Technological Boniks - Update the information of domain users by CLI or Powershell]]></dc:creator>
		<pubDate>Thu, 12 Jul 2012 06:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=697#comment-7495</guid>
		<description><![CDATA[[...] http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] <a href="http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/" rel="nofollow">http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allan</title>
		<link>http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/#comment-7251</link>
		<dc:creator><![CDATA[Allan]]></dc:creator>
		<pubDate>Fri, 24 Feb 2012 05:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=697#comment-7251</guid>
		<description><![CDATA[Thanks mate!
Have followed your advice and posted on the AD and PowerShell forum at http://powergui.org 

Allan]]></description>
		<content:encoded><![CDATA[<p>Thanks mate!<br />
Have followed your advice and posted on the AD and PowerShell forum at <a href="http://powergui.org" rel="nofollow">http://powergui.org</a> </p>
<p>Allan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Sotnikov</title>
		<link>http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/#comment-7249</link>
		<dc:creator><![CDATA[Dmitry Sotnikov]]></dc:creator>
		<pubDate>Fri, 24 Feb 2012 03:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=697#comment-7249</guid>
		<description><![CDATA[Allan, 

I don&#039;t work at the team anymore so I would really recommend that you contact them via AD and PowerShell forum at http://powergui.org 

My guess is that direct pipeline from Import-CSV to Set-QADUser is broken and you should put foreach in-between: 

Import-Csv &quot;C:\Temp\update_users.csv&quot; &#124; ForEach { Set-ADUser -Identity $_.samAccountName -Title $_.Title -ObjectAttributes @{EmployeeNumber=$_.EmployeeNumber} } 

Dmitry 

P.S. I love Alan Parson&#039;s Project. ;) ]]></description>
		<content:encoded><![CDATA[<p>Allan, </p>
<p>I don&#8217;t work at the team anymore so I would really recommend that you contact them via AD and PowerShell forum at <a href="http://powergui.org" rel="nofollow">http://powergui.org</a> </p>
<p>My guess is that direct pipeline from Import-CSV to Set-QADUser is broken and you should put foreach in-between: </p>
<p>Import-Csv &#8220;C:\Temp\update_users.csv&#8221; | ForEach { Set-ADUser -Identity $_.samAccountName -Title $_.Title -ObjectAttributes @{EmployeeNumber=$_.EmployeeNumber} } </p>
<p>Dmitry </p>
<p>P.S. I love Alan Parson&#8217;s Project. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allan</title>
		<link>http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/#comment-7248</link>
		<dc:creator><![CDATA[Allan]]></dc:creator>
		<pubDate>Fri, 24 Feb 2012 01:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=697#comment-7248</guid>
		<description><![CDATA[Hi Dmitry,

Am a novice Powershell user.

Have tried to use your script and this does not appear to work for me.
Not sure if it&#039;s an environmental issue or something I am doing wrong.
Also hard to see what&#039;s happening as the script is not returning any errors - so it appears that this is working.

Am trying to run the following script in a ps1 file: -

Import-Csv &quot;C:\Temp\update_users.csv&quot; &#124; Set-ADUser -server &quot;inf003.org.local&quot; -Identity { $_.samAccountName } 2&gt;&gt; &quot;C:\Temp\User_Error_Log.txt&quot;

Script runs ok (as in no errors reported) however does not update the user in the CSV file.

CSV file is as follows: -
samAccountName,Title,EmployeeNumber
user1,Testing123,567890

So as you can see all CSV titles are correct and I think it should work?

The changes I made to your original script at the top of this post was the server name (as reading other posts on the web I was coming up against a problem where I did not have sufficient rights to run the commands, even though I was logged in with DA privilages and running the console as Admin) and I am attempting to log any errors to a log file using 2&gt;&gt;

Any thoughts?
Help much appreciated!]]></description>
		<content:encoded><![CDATA[<p>Hi Dmitry,</p>
<p>Am a novice Powershell user.</p>
<p>Have tried to use your script and this does not appear to work for me.<br />
Not sure if it&#8217;s an environmental issue or something I am doing wrong.<br />
Also hard to see what&#8217;s happening as the script is not returning any errors &#8211; so it appears that this is working.</p>
<p>Am trying to run the following script in a ps1 file: -</p>
<p>Import-Csv &#8220;C:\Temp\update_users.csv&#8221; | Set-ADUser -server &#8220;inf003.org.local&#8221; -Identity { $_.samAccountName } 2&gt;&gt; &#8220;C:\Temp\User_Error_Log.txt&#8221;</p>
<p>Script runs ok (as in no errors reported) however does not update the user in the CSV file.</p>
<p>CSV file is as follows: -<br />
samAccountName,Title,EmployeeNumber<br />
user1,Testing123,567890</p>
<p>So as you can see all CSV titles are correct and I think it should work?</p>
<p>The changes I made to your original script at the top of this post was the server name (as reading other posts on the web I was coming up against a problem where I did not have sufficient rights to run the commands, even though I was logged in with DA privilages and running the console as Admin) and I am attempting to log any errors to a log file using 2&gt;&gt;</p>
<p>Any thoughts?<br />
Help much appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Sotnikov</title>
		<link>http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/#comment-7244</link>
		<dc:creator><![CDATA[Dmitry Sotnikov]]></dc:creator>
		<pubDate>Thu, 23 Feb 2012 17:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=697#comment-7244</guid>
		<description><![CDATA[This is very weird. Can you try posting the issue to the PowerShell and AD forum at http://powergui.org? ]]></description>
		<content:encoded><![CDATA[<p>This is very weird. Can you try posting the issue to the PowerShell and AD forum at <a href="http://powergui.org" rel="nofollow">http://powergui.org</a>? </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Annie</title>
		<link>http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/#comment-7243</link>
		<dc:creator><![CDATA[Annie]]></dc:creator>
		<pubDate>Thu, 23 Feb 2012 14:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=697#comment-7243</guid>
		<description><![CDATA[I have used the searchroot command but it still searches the entire directory. Please see below. 
Get-QADUser -Searchroot “OU=Guests,OU=People,DC=XXX,DC=XXX” -id $_.user]]></description>
		<content:encoded><![CDATA[<p>I have used the searchroot command but it still searches the entire directory. Please see below.<br />
Get-QADUser -Searchroot “OU=Guests,OU=People,DC=XXX,DC=XXX” -id $_.user</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Sotnikov</title>
		<link>http://dmitrysotnikov.wordpress.com/2008/10/03/update-active-directory-user-accounts-from-csv-file/#comment-7239</link>
		<dc:creator><![CDATA[Dmitry Sotnikov]]></dc:creator>
		<pubDate>Wed, 22 Feb 2012 20:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://dmitrysotnikov.wordpress.com/?p=697#comment-7239</guid>
		<description><![CDATA[Yes, just use -SearchRoot parameter. See http://wiki.powergui.org/index.php/Get-QADUser ]]></description>
		<content:encoded><![CDATA[<p>Yes, just use -SearchRoot parameter. See <a href="http://wiki.powergui.org/index.php/Get-QADUser" rel="nofollow">http://wiki.powergui.org/index.php/Get-QADUser</a> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
