"Access is denied" durring New-PSSession RRS feed

  • Question

  • Hi

    Im trying to connect to exchange via WCF Service. I have already Web service, querrys etc. My service is on IIS and working fine. But service is working on my, administrator account. When im trying to change account (to have less privileges) Im recive exeption: 

    System.Management.Automation.Remoting.PSRemotingTransportException: Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.

    This is only with Exchange. Session with Lync work OK. When i open PS with credentials of this account: "New-Session" + "Import-Session" also work fine. Only IIS version on Exchange is problematic.

    Any Ideas?

    Wednesday, June 24, 2015 9:55 AM

All replies

  • Hi

    Its almost like its not passing the credentials of your account through so you getting the access denied error.

    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Wednesday, June 24, 2015 5:36 PM
  • Ok

    -I logged in as Service account.
    -Started Service Client
    -And....... it started working on all accounts O_o

    This is wierd. I dont understand it.

    Thursday, June 25, 2015 7:24 AM