winrs error:access is denied


  • Hi :)

    Suddenly my win 7 client computer can not connect anymore to remote computer using enter-pssession or winrs -r:remote_computer command

    I've get response winrs error:access is denied

    I am running winrs command from command prompt runned as another user (domain admin).

    As I recall latest thing I've reinstalled onto client comp are SQL 2012 Management Studio and Eset EndPoint AV 5.

    WinRM is running on client comp.

    If I go to any server I can use enter-pssession remote_server from powershell or winrs -r:remote_computer command and is working as it was from my client comp.

    Does anyone have any idea what might be wrong ?

    Best regards

    Tuesday, July 10, 2012 9:57 AM


All replies

  • Hi,

    > Suddenly my win 7 client computer can not connect anymore to remote computer using enter-pssession
    > or winrs -r:remote_computer command

    Do you get same error “Access is denied” when you use enter-pssession and winrm command?

    By default, no configuration is required to enable a computer to send remote commands. However, to receive remote commands, the computer must be configured for remoting. The configuration includes starting the WinRM services, settings the startup type for the WinRM services to Automatic, creating listener for HTTP and HTTPS connections, and creating default session configurations.

        To configure a computer to receive remote commands, use the 
        Enable-PSRemoting cmdlet. The following command enables all required
        remote settings, enables the session configurations, and restarts the
        WinRM service to make the changes effective. 
        To suppress all user prompts, type:
            enable-psremoting -force
    For more information to troubleshoot WinRM access is denied error, please refer to this article:

    Also, you mentioned you installed third party Antivirus software, check whether it has firewall component, and disable its firewall feature and check the result.

    For more information please refer to following MS articles:

    WinRM - Access Denied
    Winrm - Winrs – Powershell
    WinRM access is denied

    Hope this helps!

    TechNet Subscriber Support

    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.



    TechNet Community Support

    Wednesday, July 11, 2012 2:46 AM
  • Hi :)

    Thank you for your reply and detailed instructions for "setup" and provided links. However, as I said, all that was working...

    This post:

    gave me clue what might be wrong :) (look at the end of last message, "solution 4 me" that lead me to exclude winrs.exe and powershell.exe from Eset Antivirus Protocol Filtering.

    Now everything works :)

    Best regards.

    • Marked as answer by CNenad Tuesday, July 24, 2012 5:33 PM
    Wednesday, July 11, 2012 10:09 AM
  • Hi,

    Glad to know you have resolved this issue.

    If there is anything that we can do for you, please do not hesitate to let us know, and we will be happy to help.

    Have a nice day!


    TechNet Community Support

    Thursday, July 12, 2012 2:17 AM