Remote command-prompt on a Windows system

While Windows offers a Telnet Server solution, we typically do not recommend this solution for security reasons.

Instead, we prefer the use of PsExec from SysInternals. This utility allows you to execute any command-line program on a remote system or under a different security context (even the System account).

By using PsExec to execute cmd on a remote system, you can create a remote command prompt. PsExec creates a service on the remote system, then removes it when it's finished, meaning not setup is required on the host system, nor is a port open always listening for connections. If your account has Admin privileges on the remote system, creating a remote command-prompt session is as simple as: psexec \\COMPUTER cmd

Note that if you use CTRL-C to break out of a program while in a PsExec'd command prompt, you will actually close the PsExec session -- we frequently run into this while trying aborting a ping!


Author: ASAK
Created: Dec 1 2005
Categories: Windows
TechByte #102

Warning: By visiting this site and/or by using any information contained herein, you agree to the Techbytes.ca terms of use.


Comment posted by 'Anonymous' on Jun 11 2008 @ 01:00:36
Hi Team,

I has been already run this exe and copy system 32 after then i am not able to access remote system. i can ping that system. please send me solution on my mail 86naveenkumar@gmail.com

Add a comment about this TechByte

If you wish to add a comment regarding this TechByte, please use the form below. Please note that by submitting comments using this form you are allowing all of the information submitted to be visible on this website. Any comments submitted using this form will only be shown on the website if they are approved by the administrators of this site. IF APPROVED, COMMENTS MAY TAKE SEVERAL DAYS TO BE POSTED.

Posted By: (Optional)

Comments:


Other TechBytes: