<?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 for Xenophane&#039;s BlogXenophane&#039;s Blog</title>
	<atom:link href="http://www.xipher.dk/WordPress/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://www.xipher.dk/WordPress</link>
	<description></description>
	<lastBuildDate>Wed, 09 Jan 2013 08:33:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Comment on Deleting empty folders in Outlook by Xenophane</title>
		<link>http://www.xipher.dk/WordPress/?p=255&#038;cpage=1#comment-4240</link>
		<dc:creator>Xenophane</dc:creator>
		<pubDate>Wed, 09 Jan 2013 08:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.xipher.dk/WordPress/?p=255#comment-4240</guid>
		<description><![CDATA[Cool Damon

Thank you for posting your findings.

--Claus]]></description>
		<content:encoded><![CDATA[<p>Cool Damon</p>
<p>Thank you for posting your findings.</p>
<p>&#8211;Claus</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deleting empty folders in Outlook by Damon</title>
		<link>http://www.xipher.dk/WordPress/?p=255&#038;cpage=1#comment-4239</link>
		<dc:creator>Damon</dc:creator>
		<pubDate>Tue, 08 Jan 2013 17:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.xipher.dk/WordPress/?p=255#comment-4239</guid>
		<description><![CDATA[Just thought I&#039;d post an update, in case someone else finds themselves in my situation. I did work it out.
In my case, I changed &lt;code&gt;$RootFolders = $namespace.Folders  &#124;  ?{$_.name -match $RootfolderToMatch}&lt;/code&gt; to &lt;code&gt;$RootFolders = $namespace.Folders  &#124;  ?{$_.name -like $RootfolderToMatch}&lt;/code&gt;
This selected only the mailbox folder for me. You could also add a &#124; and a -notmatch &quot;Public Folders&quot;, but I had inconsistent results. I then had to add several more exceptions to the system folders list, shown here.
&lt;code&gt;
	  # I have had to check for system folders, these cannot be deleted via the script, so to prevent the script for erroring out, I check for it.
    if ($fldr.name -match &quot;Slettet&quot; -or $fldr.name -match &quot;Deleted&quot; -or $fldr.name -match &quot;journal&quot; -or $fldr.name -match &quot;rss&quot;`
	    -or $fldr.name -match &quot;note&quot; -or $fldr.name -match &quot;kalender&quot; -or $fldr.name -match &quot;kontakt&quot; -or $fldr.name -match &quot;udbakke&quot; `
		-or $fldr.name -match &quot;Sync&quot; -or $fldr.name -match &quot;Server&quot; -or $fldr.name -match &quot;contacts&quot; `
        -or $fldr.name -match &quot;Suggested Contacts&quot; -or $fldr.name -match &quot;Server Failures&quot; -or $fldr.name -match &quot;Local Failures&quot; `
        -or $fldr.name -match &quot;Drafts&quot; -or $fldr.name -match &quot;Junk E-Mail&quot; -or $fldr.name -match &quot;Quick Step Settings&quot; `
        -or $fldr.name -match &quot;Conversation Action Settings&quot; -or $fldr.name -match &quot;News Feed&quot; -or $fldr.name -match &quot;Outbox&quot; ) 
      {&quot;Cannot delete systemfolder :  &quot;&quot;&quot; + $fldr.FolderPath + &quot;&quot;
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Just thought I&#8217;d post an update, in case someone else finds themselves in my situation. I did work it out.<br />
In my case, I changed <code>$RootFolders = $namespace.Folders  |  ?{$_.name -match $RootfolderToMatch}</code> to <code>$RootFolders = $namespace.Folders  |  ?{$_.name -like $RootfolderToMatch}</code><br />
This selected only the mailbox folder for me. You could also add a | and a -notmatch &#8220;Public Folders&#8221;, but I had inconsistent results. I then had to add several more exceptions to the system folders list, shown here.<br />
<code><br />
	  # I have had to check for system folders, these cannot be deleted via the script, so to prevent the script for erroring out, I check for it.<br />
    if ($fldr.name -match "Slettet" -or $fldr.name -match "Deleted" -or $fldr.name -match "journal" -or $fldr.name -match "rss"`<br />
	    -or $fldr.name -match "note" -or $fldr.name -match "kalender" -or $fldr.name -match "kontakt" -or $fldr.name -match "udbakke" `<br />
		-or $fldr.name -match "Sync" -or $fldr.name -match "Server" -or $fldr.name -match "contacts" `<br />
        -or $fldr.name -match "Suggested Contacts" -or $fldr.name -match "Server Failures" -or $fldr.name -match "Local Failures" `<br />
        -or $fldr.name -match "Drafts" -or $fldr.name -match "Junk E-Mail" -or $fldr.name -match "Quick Step Settings" `<br />
        -or $fldr.name -match "Conversation Action Settings" -or $fldr.name -match "News Feed" -or $fldr.name -match "Outbox" )<br />
      {"Cannot delete systemfolder :  """ + $fldr.FolderPath + ""<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deleting empty folders in Outlook by Damon</title>
		<link>http://www.xipher.dk/WordPress/?p=255&#038;cpage=1#comment-4238</link>
		<dc:creator>Damon</dc:creator>
		<pubDate>Tue, 08 Jan 2013 17:01:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.xipher.dk/WordPress/?p=255#comment-4238</guid>
		<description><![CDATA[Ah, I think I&#039;m on to something. We still have public folders, which is causing the RootfolderToMatch to match with two folder names. Unfortunately I can&#039;t eliminate the public folders at this time. I&#039;ll keep at it and see if I can&#039;t figure something out.]]></description>
		<content:encoded><![CDATA[<p>Ah, I think I&#8217;m on to something. We still have public folders, which is causing the RootfolderToMatch to match with two folder names. Unfortunately I can&#8217;t eliminate the public folders at this time. I&#8217;ll keep at it and see if I can&#8217;t figure something out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deleting empty folders in Outlook by Damon</title>
		<link>http://www.xipher.dk/WordPress/?p=255&#038;cpage=1#comment-4237</link>
		<dc:creator>Damon</dc:creator>
		<pubDate>Tue, 08 Jan 2013 16:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.xipher.dk/WordPress/?p=255#comment-4237</guid>
		<description><![CDATA[Thank you, I will check out Glenn&#039;s post. You have been most helpful.]]></description>
		<content:encoded><![CDATA[<p>Thank you, I will check out Glenn&#8217;s post. You have been most helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deleting empty folders in Outlook by Xenophane</title>
		<link>http://www.xipher.dk/WordPress/?p=255&#038;cpage=1#comment-4235</link>
		<dc:creator>Xenophane</dc:creator>
		<pubDate>Mon, 07 Jan 2013 10:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.xipher.dk/WordPress/?p=255#comment-4235</guid>
		<description><![CDATA[Have you seen this by Glenn Scales

http://gsexdev.blogspot.dk/2013/01/cleaning-out-skeletons-in-your-mailbox.html]]></description>
		<content:encoded><![CDATA[<p>Have you seen this by Glenn Scales</p>
<p><a href="http://gsexdev.blogspot.dk/2013/01/cleaning-out-skeletons-in-your-mailbox.html" rel="nofollow">http://gsexdev.blogspot.dk/2013/01/cleaning-out-skeletons-in-your-mailbox.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deleting empty folders in Outlook by Xenophane</title>
		<link>http://www.xipher.dk/WordPress/?p=255&#038;cpage=1#comment-4230</link>
		<dc:creator>Xenophane</dc:creator>
		<pubDate>Fri, 04 Jan 2013 09:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.xipher.dk/WordPress/?p=255#comment-4230</guid>
		<description><![CDATA[Sorry for the late reply,  I do not currently have a script to do it from Exchange, but you would have to look into EWS to get it done..]]></description>
		<content:encoded><![CDATA[<p>Sorry for the late reply,  I do not currently have a script to do it from Exchange, but you would have to look into EWS to get it done..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deleting empty folders in Outlook by Xenophane</title>
		<link>http://www.xipher.dk/WordPress/?p=255&#038;cpage=1#comment-4229</link>
		<dc:creator>Xenophane</dc:creator>
		<pubDate>Fri, 04 Jan 2013 08:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.xipher.dk/WordPress/?p=255#comment-4229</guid>
		<description><![CDATA[I just tested this on my Windows 8 machine running Outlook 2013 (Sorry do not have access to 2010 right now)

What I did:

$olApp = new-object -com Outlook.Application
$namespace = $olApp.GetNamespace(&quot;MAPI&quot;)

Then I ran $Namespace.Folders &#124; select name  to find the name of &quot;root folder&quot; that I wanted the script to run against.
In this example it is my main Exchange account, which is represented by my full name.

So to try it out I changed $RootfolderToMatch = &quot;Inbox&quot; to $RootfolderToMatch = &quot;My Full Name&quot;

--Claus]]></description>
		<content:encoded><![CDATA[<p>I just tested this on my Windows 8 machine running Outlook 2013 (Sorry do not have access to 2010 right now)</p>
<p>What I did:</p>
<p>$olApp = new-object -com Outlook.Application<br />
$namespace = $olApp.GetNamespace(&#8220;MAPI&#8221;)</p>
<p>Then I ran $Namespace.Folders | select name  to find the name of &#8220;root folder&#8221; that I wanted the script to run against.<br />
In this example it is my main Exchange account, which is represented by my full name.</p>
<p>So to try it out I changed $RootfolderToMatch = &#8220;Inbox&#8221; to $RootfolderToMatch = &#8220;My Full Name&#8221;</p>
<p>&#8211;Claus</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deleting empty folders in Outlook by Damon</title>
		<link>http://www.xipher.dk/WordPress/?p=255&#038;cpage=1#comment-4227</link>
		<dc:creator>Damon</dc:creator>
		<pubDate>Thu, 03 Jan 2013 17:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.xipher.dk/WordPress/?p=255#comment-4227</guid>
		<description><![CDATA[Great script, works well on Archive folders (PST Files). My only issue is I can&#039;t get it to work with Outlook 2010 and an Exchange account. I suspect it has to do with the fact that Outlook 2010 displays all Exchange mailboxes as the user&#039;s primary SMTP address, and the &quot;user@company.com&quot; format is confounding the Powershell engine.

Any ideas on a workaround? I can&#039;t seem to find one on my own.]]></description>
		<content:encoded><![CDATA[<p>Great script, works well on Archive folders (PST Files). My only issue is I can&#8217;t get it to work with Outlook 2010 and an Exchange account. I suspect it has to do with the fact that Outlook 2010 displays all Exchange mailboxes as the user&#8217;s primary SMTP address, and the &#8220;user@company.com&#8221; format is confounding the Powershell engine.</p>
<p>Any ideas on a workaround? I can&#8217;t seem to find one on my own.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My account keeps getting locked out, where did I use it ?? by Thomas Chandler</title>
		<link>http://www.xipher.dk/WordPress/?p=464&#038;cpage=1#comment-4191</link>
		<dc:creator>Thomas Chandler</dc:creator>
		<pubDate>Tue, 18 Dec 2012 14:59:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.xipher.dk/WordPress/?p=464#comment-4191</guid>
		<description><![CDATA[I am running the script and I get the following, was hoping someone could help:

The Term &#039;Get-QADRootDSE.domain is not recognized as the name of a cmdlet, fucntion, script file, or operable program.  Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 Char:38
+ $gsprecision = (Get-QADRootDSE.domain &lt;&lt;&lt;.Domain.ToString
      +Category Info                     :ObjectNotFound: (Get-!ADRottDES.domain:String&gt; [], CommandNotFoundException
       + FullyQualifiedErrorID  :CommandNotFoundException

thank you.]]></description>
		<content:encoded><![CDATA[<p>I am running the script and I get the following, was hoping someone could help:</p>
<p>The Term &#8216;Get-QADRootDSE.domain is not recognized as the name of a cmdlet, fucntion, script file, or operable program.  Check the spelling of the name, or if a path was included, verify that the path is correct and try again.<br />
At line:1 Char:38<br />
+ $gsprecision = (Get-QADRootDSE.domain &lt;&lt;&lt;.Domain.ToString<br />
      +Category Info                     :ObjectNotFound: (Get-!ADRottDES.domain:String&gt; [], CommandNotFoundException<br />
       + FullyQualifiedErrorID  :CommandNotFoundException</p>
<p>thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deleting empty folders in Outlook by swiep</title>
		<link>http://www.xipher.dk/WordPress/?p=255&#038;cpage=1#comment-4169</link>
		<dc:creator>swiep</dc:creator>
		<pubDate>Wed, 05 Dec 2012 22:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.xipher.dk/WordPress/?p=255#comment-4169</guid>
		<description><![CDATA[Hello Xenophane,

Do you have a variation of this script that can be run on the Exchange server instead of a workstation so that it can be scheduled on a weekly basis?
We use the archiving feature and that leaves empty folders in the original mailbox.]]></description>
		<content:encoded><![CDATA[<p>Hello Xenophane,</p>
<p>Do you have a variation of this script that can be run on the Exchange server instead of a workstation so that it can be scheduled on a weekly basis?<br />
We use the archiving feature and that leaves empty folders in the original mailbox.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
