trojan81
asked on
run cmd.exe remotely
experts,
I am on PC1 and I want to be able to run the cmd.exe on another in my network called PC2. I have full administrative rights to PC2.
I cannot remember the syntax to do this.
Assume the credentials on PC2 is: admin and password
Do I open a command prompt on PC1 and then type in a RUNAS syntax?
I am on PC1 and I want to be able to run the cmd.exe on another in my network called PC2. I have full administrative rights to PC2.
I cannot remember the syntax to do this.
Assume the credentials on PC2 is: admin and password
Do I open a command prompt on PC1 and then type in a RUNAS syntax?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There use to be a resource kit utility that allowed remote commands but I think that died in 2003. Certainly by the time Vista/2008 was available.
These days, you can use Powershell or PSEXEC (as mentioned above). A discussion on both with examples can be found here:
https://www.opswat.com/blog/powershell-vs-psexec-remote-command-execution
These days, you can use Powershell or PSEXEC (as mentioned above). A discussion on both with examples can be found here:
https://www.opswat.com/blog/powershell-vs-psexec-remote-command-execution
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That opens an command shell and you can run whatever you want.