Windows Server 2003
1822543 Members
2607 Online
109642 Solutions
New Discussion юеВ

access to the command prompt (cmd) from the remote server

 
SOLVED
Go to solution
'chris'
Super Advisor

access to the command prompt (cmd) from the remote server

hi

Is it possible to access to the command prompt (cmd) from the remote WIN2003 SP2 server?
I'd like to stop/start some service or change to startup manually on the remote hanging machine.
5 REPLIES 5
Edgar Zapata
Esteemed Contributor
Solution

Re: access to the command prompt (cmd) from the remote server

Hi Chris,

You can run psexec.exe
Download it from: http://download.sysinternals.com/Files/PsTools.zip

I use it all the time.
Once installed, try the following:
C:\>psexec -s \\10.50.8.10 cmd

Hope it helps.

Sample:

C:\>hostname
XT285vi77HGT

C:\>psexec -s \\172.16.7.21 cmd

PsExec v1.82 - Execute processes remotely
Copyright (C) 2001-2007 Mark Russinovich
Sysinternals - www.sysinternals.com


Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\WINDOWS\system32>hostname
XT285V02K3-REMOTE

Change_happens
Honored Contributor

Re: access to the command prompt (cmd) from the remote server

also can use xp_commandshell form microsoft again.
P Muralidhar Kini
Honored Contributor

Re: access to the command prompt (cmd) from the remote server

Hi Chris,

You can make use of PsExec to get command prompt of a remote server. This is a freeware tool.
http://dailycupoftech.com/2007/07/16/get-command-prompt-on-remote-system/

You can download it from -
http://download.sysinternals.com/Files/PsTools.zip

Regards,
Murali
Let There Be Rock - AC/DC
P Muralidhar Kini
Honored Contributor

Re: access to the command prompt (cmd) from the remote server

Hi Chris,

You can use the process viewer tool to kill a process.

This comes along with the windows 2003 support tools. It wont be installed
by default. Also you find a option for this in the installation.
You need to manually install it from the setup CD.

Check the following link for more details -
http://www.windowsnetworking.com/articles_tutorials/Windows_2003_Support_Tools.html

Regards,
Murali
Let There Be Rock - AC/DC
Change_happens
Honored Contributor

Re: access to the command prompt (cmd) from the remote server

psexec is better choice from microsoft sysinternal suite:
reliable secure as it uses ssh.

http://computer-vet.com/weblog/2008/01/28/remote-command-line-on-windows.html