none
winrs error:access is denied

    Question

  • 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

Answers

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. 
            enable-psremoting
        To suppress all user prompts, type:
            enable-psremoting -force
    For more information to troubleshoot WinRM access is denied error, please refer to this article:
    about_Remote_Troubleshooting 
    http://technet.microsoft.com/en-us/library/dd347642.aspx

    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
    http://social.technet.microsoft.com/Forums/en/winserverManagement/thread/e5f8cfee-d4a6-4e5c-9baf-e8a8a67d9316
    Winrm - Winrs – Powershell
    http://social.technet.microsoft.com/Forums/en-US/winserverManagement/thread/82f38496-3ca5-498d-9b98-635fd6da4029/
    WinRM access is denied
    http://social.technet.microsoft.com/Forums/en/itproxpsp/thread/198bff14-fecd-44ae-bbef-7ad931eb57d5

    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.

     


    Lawrence

    TechNet Community Support

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

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

    This post: http://social.technet.microsoft.com/Forums/en/winserverManagement/thread/a31404e5-e13a-4a9e-8c36-1bf77c35116a

    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!


    Lawrence

    TechNet Community Support

    Thursday, July 12, 2012 2:17 AM
    Moderator