Powershell to Exchange 2013 - Restricted language mode error
问题 I'm working on a C# web service that will be deployed on an Exchange 2013 server. This service will be responsible for running powershell commands to configure Exchange. I connect via a runspace created like this const string shellUri = "http://schemas.microsoft.com/powershell/microsoft.exchange"; var uri = new Uri(_exchangeConnectionUri); var credentials = (PSCredential)null; // Windows authentication var connectionInfo = new WSManConnectionInfo(uri, shellUri, credentials); connectionInfo