when we try to run remote programs from local system this error saying “Access Denied” may come. To overcome this, you have to add a registry key.
- Open RegEdit on your remote server
- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
- Add a new DWORD value called LocalAccountTokenFilterPolicy
- Set its value to 1
- Reboot your remove server
- Try running PSExec again from your local server
You should be able to execute remote commands.