I have a user management application that I've written that works great under XP but as part of our prep for moving up to Windows 7 I have been trying to get it to run under Windows 7 and my Exchange PSSnapIn is not playing nice. It always reports
"No snap-ins have been registered for Windows PowerShell version 2."
But I can go run add-pssnapin in Powershell and verify that it is in the list with get-pssnapin. I'm sure the obvious answer is that it's not a version 2 PSSnapIn, but why can I run it at the command line and not inside of my runspace?