locked
WSMan Initialization failed with error code: -2144108171. RRS feed

  • Question

  • User-1651604128 posted

    My C# code try to connect exchange server through powershell, I got this error "WSMan Initialization failed with error code: -2144108171."

    on the code of  runspace = RunspaceFactory.CreateRunspace(connectionInfo);

    Can anybody help? thanks

    Thursday, October 10, 2019 1:00 PM

All replies

  • User475983607 posted

    Peter Cong

    My C# code try to connect exchange server through powershell, I got this error "WSMan Initialization failed with error code: -2144108171."

    on the code of  runspace = RunspaceFactory.CreateRunspace(connectionInfo);

    Can anybody help? thanks

    An Exchange or PowerShell support forum is a better support source.   This is an ASP.NET support site.

    What steps have you taken to remedy this?  Have you looked up the error?   Have you tried running the PowerShell script while remoted into the machine?  Have you tried reading WsMan docs to make sure you are using the client correctly?  Does you application identity have appropriate rights to run WsMan?

    Thursday, October 10, 2019 1:23 PM