I saw a similar topic, but it doesn't quite meet my needs.
I have a batch file located on a 2008 R2 server that needs to be run remotely from a Windows 7 workstation. I'm using PsExec to run a local executable that should run the remote batch file.
When I log into the workstation under the admin account, everything works fine. The problem is when logged into the workstation as another user(non admin), it does not work. I get the error: Could not start PsExec service on serverIP: Access is denied.
The executable uses the following:
PsExec \\serverIP -u admin -p password cmd.exe /c c:\PSTools\filename.bat
What I find is when running the executable as a non admin user, the event viewer of the target server shows a login attempt of the user of the workstation, and not the user specified in the PsExec.
From what I can find from different forums is that it seems when running the PsExec, the -u and -p are ignored if running from a Windows 7 to a 2008 R2. I haven't been able to confirm that for sure. I also found that the users running the executable need to have admin rights to the server. We don't want to give them admin rights.
What am I missing?