Syndicate this site: (RSS)

PsExec: unknown user name

Today's fun: trying to push a command to pull a file.

So, sitting on a.thisdomain.com, trying to ask b.thatdomain.com to copy a file available on a.

psexec \\b.thatdomain.com -e -u thatdomain\userB -p password cmd /c copy /Y \\a.thisdomain.com\source.file target.file

And this was exploding...

Copyright (C) 2001-2008 Mark Russinovich Sysinternals - www.sysinternals.com


Logon failure: unknown user name or bad password.
cmd exited on b.thatdomain.com with error code 1.

ANSWER: the -e switch was getting in the way. The docs say "Does not load the specified account's profile." I got a little bit of a hint that was happening: although experiment demonstrated that I was in the right (remote) directory, the set command wasn't showing the USERNAME, etc environment variables that I had expected to see.

I'm not convinced that documentation really describes what is going on, which seems superficially to be "once you've established that you have established access to the machine, operate as GUEST".

May 22, 2009 11:58 AM | TrackBack

Comments
Post a comment




Who are you?