In my application I’ve to run some command to create a mailbox, so I found the commands to execute in Exchange Management Shell.
I’ve realyzed a class that permit to instantiate the PowerShell and I try to execute the script.
I received many errors because the script need Exchange Management Shell and not PowerShell.
What’s Exchange Management Shell do when it run?
It run PowerShell, then execute these commands
chdir "c:\program files\microsoft\exchange server\bin"