<?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>Identifying Unresolved LegacyExchangeDNs via EWS and Powershell</title><link>http://blogs.technet.com/b/bill_long/archive/2011/09/16/identifying-unresolved-legacyexchangedns-via-ews-and-powershell.aspx</link><description>I recently worked with a customer who had inadvertently deleted all their user accounts (and thus their Exchange mailboxes), and with no backup available, they had to recreate them. Talk about a nightmare! After they did so, they were able to get their</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Identifying Unresolved LegacyExchangeDNs via EWS and Powershell</title><link>http://blogs.technet.com/b/bill_long/archive/2011/09/16/identifying-unresolved-legacyexchangedns-via-ews-and-powershell.aspx#3456561</link><pubDate>Fri, 30 Sep 2011 13:49:03 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3456561</guid><dc:creator>Bill Long [Exchange]</dc:creator><description>&lt;p&gt;Excellent! I took this idea and modified it into a single line that prompts for the password and puts it in the $password variable, so that the rest of the script didn&amp;#39;t have to be modified. You could do the same thing with Get-Credential, but I wanted to have a little more control over the dialog, so I used PromptForCredential. It&amp;#39;s really no different, though.&lt;/p&gt;
&lt;p&gt;I had no idea we stored a plain text password on this credential object. Thanks again!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3456561" width="1" height="1"&gt;</description></item><item><title>re: Identifying Unresolved LegacyExchangeDNs via EWS and Powershell</title><link>http://blogs.technet.com/b/bill_long/archive/2011/09/16/identifying-unresolved-legacyexchangedns-via-ews-and-powershell.aspx#3456138</link><pubDate>Wed, 28 Sep 2011 19:57:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3456138</guid><dc:creator>DJ Grijalva</dc:creator><description>&lt;p&gt;I found another helper for your script. For the credential issue, you would just have to do the following:&lt;/p&gt;
&lt;p&gt;$Creds = Get-Credential&lt;/p&gt;
&lt;p&gt; $service.Credentials = New-Object Microsoft.Exchange.WebServices.Data.WebCredentials -ArgumentList $Creds.UserName, $Creds.GetNetworkCredential().Password&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3456138" width="1" height="1"&gt;</description></item><item><title>re: Identifying Unresolved LegacyExchangeDNs via EWS and Powershell</title><link>http://blogs.technet.com/b/bill_long/archive/2011/09/16/identifying-unresolved-legacyexchangedns-via-ews-and-powershell.aspx#3454228</link><pubDate>Mon, 19 Sep 2011 16:27:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3454228</guid><dc:creator>Bill Long [Exchange]</dc:creator><description>&lt;p&gt;Hey, that actually works! Thanks DJ! I&amp;#39;ve updated the script.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3454228" width="1" height="1"&gt;</description></item><item><title>re: Identifying Unresolved LegacyExchangeDNs via EWS and Powershell</title><link>http://blogs.technet.com/b/bill_long/archive/2011/09/16/identifying-unresolved-legacyexchangedns-via-ews-and-powershell.aspx#3453812</link><pubDate>Fri, 16 Sep 2011 19:32:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3453812</guid><dc:creator>DJ</dc:creator><description>&lt;p&gt;Have you tried replacing:&lt;/p&gt;
&lt;p&gt;$exchService.AutoDiscoverUrl($emailAddress) &lt;/p&gt;
&lt;p&gt;with:&lt;/p&gt;
&lt;p&gt;$exchService.AutodiscoverUrl($emailAddress, {$true})&lt;/p&gt;
&lt;p&gt;to handle the Autodiscover redirect?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3453812" width="1" height="1"&gt;</description></item></channel></rss>