Using Exchange 2007 cmdlets in custom Powershell application
Posted on 2008-06-11
I have created an application in VB.net to simplify my jobs powershell tasks. Everything works fine when it comes to the script, and in essence all non-Exchange cmdlets work fine, i.e. Get-Process.
The issue is I cannot use the Exchange 2007 cmdlets. I am running this program on an Exchange server on which I would previously use to execute the cmdlets directly from Powershell, and they work fine when I input them in, but when I do it programmatically it says:
"Error in script: The term 'Get-Mailbox' is not recognized as a cmdlet, function, operable program, or script file."
Any assistance would be greatly appreciated. If you need to see code please let me know.