<?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>Hey, Scripting Guy! How Do I Use Windows PowerShell to Work with Junk E-Mail in Office Outlook?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/01/26/how-do-i-use-windows-powershell-to-work-with-junk-e-mail-in-office-outlook.aspx</link><description>Hey, Scripting Guy! I need to find out how many e-mail messages are in my Junk folder. I found a script that does this with VBScript, but I need to be able to do it in Windows PowerShell. I do not want to delete the junk e-mail, because there are times</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hey, Scripting Guy! How Do I Use Windows PowerShell to Work with Junk E-Mail in Office Outlook?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/01/26/how-do-i-use-windows-powershell-to-work-with-junk-e-mail-in-office-outlook.aspx#3454273</link><pubDate>Mon, 19 Sep 2011 19:35:58 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3454273</guid><dc:creator>jrv</dc:creator><description>&lt;p&gt;Will Smothers -HI. This is really not a hel forum but a bit of help;&lt;/p&gt;
&lt;p&gt;The Interop has to be theone deieverd with teh vrion of Office you are running. &amp;nbsp;Install it from the CD/DVD using the office installer. &amp;nbsp;It s a optional install.&lt;/p&gt;
&lt;p&gt;For further assistance try the cripting Guy&amp;#39;s forum: &lt;a rel="nofollow" target="_new" href="http://social.technet.microsoft.com/Forums/en-US/ITCG/"&gt;social.technet.microsoft.com/.../ITCG&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3454273" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Do I Use Windows PowerShell to Work with Junk E-Mail in Office Outlook?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/01/26/how-do-i-use-windows-powershell-to-work-with-junk-e-mail-in-office-outlook.aspx#3454225</link><pubDate>Mon, 19 Sep 2011 16:20:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3454225</guid><dc:creator>Will Smothers</dc:creator><description>&lt;p&gt;Okay, this is very frustrating as no one can give me an answer to this. When I try the above script, or any script that uses the following lines:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$Outlook = new-object -Com Outlook.Application&lt;/p&gt;
&lt;p&gt;	$Namespace = $Outlook.GetNamespace(&amp;quot;MAPI&amp;quot;)&lt;/p&gt;
&lt;p&gt;I get the following error:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Exception calling &amp;quot;GetNamespace&amp;quot; with &amp;quot;1&amp;quot; argument(s): &amp;quot;Unable to cast COM object of type &amp;#39;Microsoft.Office.Interop.Out&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; look.ApplicationClass&amp;#39; to interface type &amp;#39;Microsoft.Office.Interop.Outlook._Application&amp;#39;. This operation failed because&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; the QueryInterface call on the COM component for the interface with IID &amp;#39;{00063001-0000-0000-C000-000000000046}&amp;#39; failed &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; At C:\scripts\Exchange Scripts\CreateNewFoldersInOutlook.ps1:14 char:36&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; $Namespace = $Outlook.GetNamespace &amp;lt;&amp;lt;&amp;lt;&amp;lt; (&amp;quot;MAPI&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: NotSpecified: (:) [], ParentContainsErrorRecordException&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + FullyQualifiedErrorId : DotNetMethodException&lt;/p&gt;
&lt;p&gt;I have copied the Microsoft.Office.Interop.Outlook.dll froma Visual Studio workstation into my C:\Program Files (x86)\Microsoft Office\Office14\ directory. No luck.&lt;/p&gt;
&lt;p&gt;I have tried to include the [Reflection.Assembly] in my code. No luck.&lt;/p&gt;
&lt;p&gt;I have searched my registry and found the COM component referenced and it is in my registy. The only weirdness I have is that I am running Windows 7 Enterprise w/SP1 for 64-bit with the Office 2010 for 32-bit. We have to do this for some compatibility reasons with other software.&lt;/p&gt;
&lt;p&gt;Any help you can provide would be greatly appreciated! &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3454225" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Do I Use Windows PowerShell to Work with Junk E-Mail in Office Outlook?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/01/26/how-do-i-use-windows-powershell-to-work-with-junk-e-mail-in-office-outlook.aspx#3317503</link><pubDate>Mon, 08 Mar 2010 09:56:18 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3317503</guid><dc:creator>Ahmed Al-Haffar</dc:creator><description>&lt;p&gt;Hey Scripting Guy, i need your help on how to move emails from Folder A to Folder B , then delete folder A &lt;/p&gt;
&lt;p&gt;Please Help&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3317503" width="1" height="1"&gt;</description></item></channel></rss>