What I mean:
If I...
run
runas /netonly /user:computername\username cmd
enter the password for the local admin account "username"
then type
psexec \\computername cmd
I now have a working shell and can run commands as the local admin user on the remote machine.
However, trying to run this without the runas... and instead with the username and password arguments of psexec
returns an access denied error.
Example below:
psexec \\computername -u username -p password cmd
Access Denied
Note: Others seem to also have this issue. My refined questions:
- Is this intended behavior?
- Why even have the
-u
and-p
?
I have also tried disabling the firewall on both my machine and the target machine, and adding the registry key listed here.