I was trying to run the following command from my machine logged as domain\user1:
psexec \\machine-name notepad.exe -u domain\user2 -p password
User2 is the admin on the target machine and also on the same domain as user1.
I have also verified the following solution recommend elsewhere but none of them worked:
1. running the command as administrator
2. net use \\targetpc /user:user is also working but still the same error
Moreover, when the both the machines were logged in with same credentials the command worked fine.
Please help!!!!