I am using C# to send PowerShell commands interacting with Exchange. I have a method called initconnection which sets up my connection to Exchange.
initconnection
I ha
You have to add the Exchange snap-in to your runspace. Take a look at Exchange for developers.