<?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: Using Powershell to import contacts into Exchange and Outlook Live</title>
	<atom:link href="http://www.stevieg.org/2010/07/using-powershell-to-import-contacts-into-exchange-and-outlook-live/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stevieg.org/2010/07/using-powershell-to-import-contacts-into-exchange-and-outlook-live/</link>
	<description>The weblog of an IT pro specialising in Exchange, Exchange, VMware, Servers and Storage</description>
	<lastBuildDate>Tue, 07 Feb 2012 16:24:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Steve Goodman</title>
		<link>http://www.stevieg.org/2010/07/using-powershell-to-import-contacts-into-exchange-and-outlook-live/comment-page-1/#comment-3299</link>
		<dc:creator>Steve Goodman</dc:creator>
		<pubDate>Wed, 01 Feb 2012 18:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevieg.org/?p=336#comment-3299</guid>
		<description>Thanks, and cheers for sharing your experiences :-)

Steve</description>
		<content:encoded><![CDATA[<p>Thanks, and cheers for sharing your experiences <img src='http://www.stevieg.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jotheman</title>
		<link>http://www.stevieg.org/2010/07/using-powershell-to-import-contacts-into-exchange-and-outlook-live/comment-page-1/#comment-3242</link>
		<dc:creator>jotheman</dc:creator>
		<pubDate>Thu, 19 Jan 2012 13:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevieg.org/?p=336#comment-3242</guid>
		<description>And a last comment. The reply above can be ignored, this was not the problem.
When scripting these kinds of actions it appears the O365 server needs to catch it&#039;s breath after each action. The things I found out:
- Make sure you are on a stable connection
- Put delays (code &quot;Start-Sleep -Seconds 1&quot;) between actions such as impersonating a user, binding the contacts folder, creating a folder, creating a contact etcetera.

After sticking to both of the above I saw no more 401&#039;s :)
Best of luck to you all and thanks again Steve.</description>
		<content:encoded><![CDATA[<p>And a last comment. The reply above can be ignored, this was not the problem.<br />
When scripting these kinds of actions it appears the O365 server needs to catch it&#8217;s breath after each action. The things I found out:<br />
- Make sure you are on a stable connection<br />
- Put delays (code &#8220;Start-Sleep -Seconds 1&#8243;) between actions such as impersonating a user, binding the contacts folder, creating a folder, creating a contact etcetera.</p>
<p>After sticking to both of the above I saw no more 401&#8242;s <img src='http://www.stevieg.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Best of luck to you all and thanks again Steve.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jotheman</title>
		<link>http://www.stevieg.org/2010/07/using-powershell-to-import-contacts-into-exchange-and-outlook-live/comment-page-1/#comment-2854</link>
		<dc:creator>jotheman</dc:creator>
		<pubDate>Mon, 14 Nov 2011 10:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevieg.org/?p=336#comment-2854</guid>
		<description>In addition to this, the fault mentioned above was caused by the following:
I did not use the following command upfront, in my case it was needed every time:
New-ManagementRoleAssignment -Name:ImpersonationAssigmentName -Role:ApplicationImpersonation -User:[emailaddressofimpersonateduser]

After that it worked again.
Thanks Steve for the perfect setup!</description>
		<content:encoded><![CDATA[<p>In addition to this, the fault mentioned above was caused by the following:<br />
I did not use the following command upfront, in my case it was needed every time:<br />
New-ManagementRoleAssignment -Name:ImpersonationAssigmentName -Role:ApplicationImpersonation -User:[emailaddressofimpersonateduser]</p>
<p>After that it worked again.<br />
Thanks Steve for the perfect setup!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jotheman</title>
		<link>http://www.stevieg.org/2010/07/using-powershell-to-import-contacts-into-exchange-and-outlook-live/comment-page-1/#comment-2845</link>
		<dc:creator>jotheman</dc:creator>
		<pubDate>Fri, 11 Nov 2011 11:14:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevieg.org/?p=336#comment-2845</guid>
		<description>You need to use the direct link to EWS, as Steve noted, do this by using the switch Steve built in:
-EWSUrl https://[servername].domain/EWS/Exchange.asmx

I have a very strange problem, I was using the script all was going well, I could import some example csv&#039;s and was tuning the script (location, attributemappings etc). After a while I was no longer able to run the commands, I got the same error as people that were replying before:
Exception calling &quot;Bind&quot; with &quot;2&quot; argument(s): &quot;The request failed. The remote server returned an error: (401) Unauthor
ized.&quot;
At C:\CSV-Import\Fullscript-v1\Import-MailboxContacts-FINAL.ps1:133 char:81
+     $ContactsFolder = [Microsoft.Exchange.WebServices.Data.ContactsFolder]::Bind &lt;&lt;&lt;&lt; ($service, [Microsoft.Exchange.
WebServices.Data.WellKnownFolderName]::Contacts);
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : DotNetMethodException

Anyone have an idea why this is happening?</description>
		<content:encoded><![CDATA[<p>You need to use the direct link to EWS, as Steve noted, do this by using the switch Steve built in:<br />
-EWSUrl <a href="https://servername.domain/EWS/Exchange.asmx" rel="nofollow">https://servername.domain/EWS/Exchange.asmx</a></p>
<p>I have a very strange problem, I was using the script all was going well, I could import some example csv&#8217;s and was tuning the script (location, attributemappings etc). After a while I was no longer able to run the commands, I got the same error as people that were replying before:<br />
Exception calling &#8220;Bind&#8221; with &#8220;2&#8243; argument(s): &#8220;The request failed. The remote server returned an error: (401) Unauthor<br />
ized.&#8221;<br />
At C:\CSV-Import\Fullscript-v1\Import-MailboxContacts-FINAL.ps1:133 char:81<br />
+     $ContactsFolder = [Microsoft.Exchange.WebServices.Data.ContactsFolder]::Bind &lt;&lt;&lt;&lt; ($service, [Microsoft.Exchange.<br />
WebServices.Data.WellKnownFolderName]::Contacts);<br />
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException<br />
    + FullyQualifiedErrorId : DotNetMethodException</p>
<p>Anyone have an idea why this is happening?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

