Error msg: “No snap-ins have been registered for Windows PowerShell version 2.” No ratings yet.

A customer reported the “No snap-ins have been registered for Windows PowerShell version 2.” Error message running their code on a windows 2008 r2 server box. They were running code that would haven run inside a c# application which called…

Read More

Session Exhaustion: Error “The maximum number of sessions for the current user has been reached.” No ratings yet.

Had a customer who reported “The maximum number of sessions for the current user has been reached.” When executing the AddUsersToPFRecursive.ps1 cmdlet which allows you to specify permissions for the client user.   This is the powershell command and error…

Read More

Obtain SMTP Address using CDO in an un-managed environment No ratings yet.

You can use the AddressEntry.Fields(PR_SMTP_ADDRESS) method where PR_SMTP_ADDRESS is 0x39FE001E.   Here are two examples of it:   ‘ MAPI property tag for SMTP address           ‘ Get first message from inbox         Set objFolder = objSession.Inbox         Set…

Read More

Obtain SMTP Address using CDO/Outlook in managed environments No ratings yet.

If you were targeting office 2003 clients, you can download the Office 2003 primary interop libraries here: http://www.microsoft.com/downloads/details.aspx?familyid=3c9a983a-ac14-4125-8ba0-d36d67e0f4ad&displaylang=en   This will allow your application to communicate with the Outlook object model (OOM) using interop. Once you have installed and connected…

Read More