Hey,
Since many of our customers reported the issues here. We wanted to communicate some more information to get this sorted faster.
Nino_Bilic
PRTG is using Remote Powershell and accessing the Exchange Management Shell, which was reported as broken already.
var credential = new PSCredential(user,pw);
var connectionInfo = new WSManConnectionInfo(false, server, port, "/Powershell", "http://schemas.microsoft.com/powershell/Microsoft.Exchange", credential)
System.Management.Automation.Runspace.Runspace = RunspaceFactory.CreateRunspace(connectionInfo);
Runspace.Open()
While the errormessage said something about Language Mode, we tried to adapt that. Sadly the System.Management.Automation.Runspaces.RunspaceFactory does not have a overload, which takes the arguments for a System.Management.Automation.Runspaces.InitialSessionState object, where you can adjust the Language Mode and a RunspaceConnectionInfo(specifically WSManConnectionInfo) object.
Once the Runspace is created, the Language Mode cannot be changed anymore.
Thanks,
Eugen Wilhelm (Paessler AG)