当我运行SysInternals PSEXEC在远程机器上启动进程时,如果我在命令行中指定了密码,它将失败:
PsExec could not start cmd.exe on web1928:
Logon failure: unknown user name or bad password.
psexec \\web1928 -u remoteexec -p mypassword "cmd.exe"
要么
psexec \\web1928 -u web1928\remoteexec -p mypassword "cmd.exe"
如果我只是指定:
psexec \\web1928 -u remoteexec "cmd.exe"
并input密码它工作得很好。
原始服务器是Windows 2003,远程服务器是Windows 2008 SP2。 remoteexec帐户只存在于远程服务器上,并且是Administrators组的成员。
难道密码中包含需要input密码的字符吗?
如果您没有提供用户名,则当前的身份validation通过。 当传递-u参数时,您可能需要将用户名指定为DOMAIN \ username。 我将猜测,psexec正在尝试在计算机上validation本地帐户“remoteexec”,而不是像您期望的域帐户。