<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/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>Search results for '(app:forums OR groupid:24)' matching tags 'mail', 'file', and 'COM'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=(app:forums+OR+groupid:24)&amp;tag=mail,file,COM&amp;orTags=0&amp;o=DateDescending</link><description>Search results for '(app:forums OR groupid:24)' matching tags 'mail', 'file', and 'COM'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>How can I back up Outlook folder contents using powershell?</title><link>http://powershell.com/cs/forums/thread/9949.aspx</link><pubDate>Tue, 12 Apr 2011 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:9949</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;I found a script using Technet and Google.&lt;/p&gt;
&lt;p&gt;$outlook = New-Object -comObject Outlook.Application&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;$olJunk = $outlook.Session.GetDefaultFolder(23) &amp;nbsp;&lt;/p&gt;
&lt;p&gt;$($olJunk.Items) | %{$_.Delete()}&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It turns out it does actually empty the junk mail folder. &amp;nbsp;I guess each default folder is assigned a numerical value.&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m looking for is a way to actually backup the folder contents before the delete. &amp;nbsp;In a sense doing the equivalent of a pst backup using powershell. &amp;nbsp;I&amp;#39;m hoping I can get powershell to select the folder and mimic the action of a Import/Export to .pst.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t even know if this is possible, anyone have any ideas? &amp;nbsp;Thanks...&lt;/p&gt;
&lt;/p&gt;</description></item></channel></rss>