My goal is for users to execute batch scripts from Windows 7 laptops that exist on a Windows 2003 server.
I am able to execute the script because I am an admin on the server.
This works for me:
psexec.exe \\Domain D:\Restart_Scripts\test.exe
What I was hoping to do was to create a local admin account on the server and then have users map a share to a folder (Connecting using different credentials - the local id I created). They would then double-click the batch file via:
psexec.exe \\Domain -u Domain\sam -p Password D:\Restart_Scripts\test.exe
Getting 'Access Denied' - doesn't execute the psexec command at all.
I have made local id 'sam' an administrator on the server. It has access rights to Admin$ too. The only way to get this to work is to add the user who is executing as an administrator to the server and then they can execute successfully as I was able to.
Is there a way to accomplish this or does the user have to have admin rights on the server?