Why does PSEXEC work if I don't specify a password?

Posted by Kev on Server Fault See other posts from Server Fault or by Kev
Published on 2010-04-22T18:44:39Z Indexed on 2010/04/22 18:54 UTC
Read the original article Hit count: 471

When I run PSEXEC to launch a process on a remote machine, if I specify the password in the command line it fails with:

PsExec could not start cmd.exe on web1928:
Logon failure: unknown user name or bad password.

psexec \\web1928 -u remoteexec -p mypassword "cmd.exe"

If I just specify:

psexec \\web1928 -u remoteexec "cmd.exe"

and type in the password it works just fine.

The originating server is Windows 2003 and the remote server is Windows 2008 SP2.

© Server Fault or respective owner

Related posts about psexec

Related posts about sysinternals