I get the following error when running this. I have Outlook 2010 RTM installed from technet.
New-Object : Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed du
e to the following error: 80080005.
At C:\scripts\Fix-PFItems.ps1:366 char:22
+ $outlook = new-object <<<< -com Outlook.Application
+ CategoryInfo : ResourceUnavailable: (:) [New-Object], COMException
+ FullyQualifiedErrorId : NoCOMClassIdentified,Microsoft.PowerShell.Commands.NewObjectCommand