none
PSEXEC Error Access Denied

    Question

  • Hi Tech Support,

    I got below error when using psexec on remote computer (india). user123 is admin at india. Admin$ and IPC$ can access without error. Please help....

    psexec \\india -u india\user123 -p admin@123 -h cmd

    Error establishing communication with PsExec service on india:
    Access is denied.

    Tuesday, April 24, 2018 9:08 AM

All replies

  •  

    Hi,

    What’s the error message before Access is denied?

    On my test machine it show me as the following screenshots.

    After I add the LocalAccountTokenFilterPolicy registry, it can access successfully.

    Please try to take following steps to see if it can work.  

    (Before you do this please back up your registry. Here is link: https://support.microsoft.com/en-us/help/322756/how-to-back-up-and-restore-the-registry-in-windows)

    1. Click Start, click Run, type regedit, and then press ENTER.

    2. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

    3. If the LocalAccountTokenFilterPolicy registry entry does not exist, follow these steps: 

    3.1 On the Edit menu, point to        New, and then click DWORD Value.

    3.2 Type        LocalAccountTokenFilterPolicy, and then press ENTER.

    4. Right-click LocalAccountTokenFilterPolicy, and then click Modify.

    5. In the Value data box, type 1, and then click OK.

    6. Exit Registry Editor.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, April 25, 2018 6:08 AM
  • Thanks Vera Hu for reply.

    I've do what you list but still get same error.


    Thursday, April 26, 2018 1:31 AM
  • Sysinternals is not a Default Win 7 software.

    https://docs.microsoft.com/en-us/sysinternals/

    Actually its a 3rd party installation,even if it came from TechNet/Microsoft.Youre best bet,in run or cmd type: services.msc  scroll to remote data,double click,reset its start-up & defaults.Also,Win firewall might be edited,allow remote data.The normal "Access Denied" comes from user account/uncheck parental software...Also,do youre editing in Win Power Shell.

    Thursday, April 26, 2018 1:53 AM
  • Please check if you run the PsExec service on 10.XXX PC.

    If no, you need to also download the PsTools, and run the PsExec.exe.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, April 26, 2018 7:09 AM
  • Hi, 

    How’s everything going? Please feel free to give me any update.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, April 27, 2018 8:02 AM
  • Still not working until my pc has restart for windows updates. Suddenly psexec working back. When psexec on my pc not function. I can using & run it at another pc.

    I think maybe some setting at policy make it cannot run from my pc.

    Tuesday, May 22, 2018 4:52 AM
  • Has anyone find a solution to the "Access Denied" issue?
    • Proposed as answer by JSneade_Z Tuesday, October 2, 2018 5:48 PM
    • Unproposed as answer by JSneade_Z Tuesday, October 2, 2018 5:49 PM
    Monday, July 9, 2018 7:49 PM