PSExec “access is denied” on WS ’03

command-line-interfacepstoolsremote-accesswindows-server-2003

I'm trying to execute commands to a remote server offsite and PSExec for some reason is not working.

C:\> psexec \\LOC-Server -u AdminUser -p AdminPW cmd

This won't even let me run command prompt. But when I RDP into \\LOC-Server with the AdminUser and AdminPW credentials I'm able to get on it.

What am I doing wrong?

EDIT: I have also tried Domain\AdminUser but that hasn't worked either.

Best Answer

Try doing it like this:

psexec \\LOC-Server -u **DOMAIN**\AdminUser -p AdminPW cmd

Or, it could be due to:

psexec \\LOC-Server -u AdminUser -p AdminPW **cmd.exe**