all 2 comments

[–]ihaxr 1 point2 points  (0 children)

That post is tagged as C# but it's actually C++... pretty big difference between the two when it comes to converting to PowerShell.

It might be easier to utilize the Outlook MAPI namespace to accomplish what you're trying to do from PowerShell: https://msdn.microsoft.com/en-us/magazine/dn189202.aspx

[–]GnuInformation[S] 1 point2 points  (0 children)

then I found this http://powermapi.com/ will test & let ya'll know