Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I normally access my hosted dedicated server, running Windows Server 2k3, via Remote Desktop. However, that service is bizarrely unavailable today and so I urgently need an alternative method for accessing that box, in particular for copying in a file that is needed. I can ftp into it but that doesn't give me access to the directory I need.

Is there a command-line utility I can use to get a shell on that machine? I have the necessary credentials.

Edit: I should clarify that I do not have domain access to this machine; I only have Internet access.

share|improve this question


share|improve this answer
Does PsExec work for machines that I only have Internet access to? – ep4169 Jun 29 '10 at 23:38
if you have admin on the remote server and there are no firewalls and like John Gardeniers pointed out no AV software to block the execution, then maybe! I personally don't think you'll have any luck since they probably will have block all the relevant ports. try this telnet servername 135 to see if there is a firewall in the way – tony roth Jun 29 '10 at 23:52
Failed on both port 135 and port 23. Looks like I'm out of luck. – ep4169 Jun 30 '10 at 0:12
figures, wish I could be of more help. – tony roth Jun 30 '10 at 1:46

I suggest you to download and install eurysco on the remote machine and use the command line feature...

share|improve this answer
Do you work for this vendor? – jscott Aug 4 '14 at 14:58
no, this is a free and open source software that I developed... it's based on PHP :) – Gabriel Lupi Aug 4 '14 at 15:01
Please see the "Avoid overt self-promotion" section of the Help Center. If you're only here to link your project, it may not be well received. – jscott Aug 4 '14 at 15:03
ok, but I wrote it in good faith and it does not seem to be out of topic... the next time I lie and say they have nothing to do with the software in question :) – Gabriel Lupi Aug 4 '14 at 15:06

Try SSH through KpyM ssh server and putty. All Macs and many Linux distros support SSH right out of the box. You can also use Teamviewer or TightVNC as an alternative to Remote Desktop.

You can also use Wol to wake your server after you shut it down or it goes into sleep. I use all of these methods to keep my home server alive and running. This might depend on your server host however.

share|improve this answer
Curious did you read the question? All of your 'alternatives' are something he 'could' do in the future but all require access to the server to setup. – MrStatic Jun 30 '10 at 0:16
Actually I did. He is not asking how to hack his own server though... He is outside the network as he stated in his comment. Thanks for the vote down :b sarcasm – Oldarney Jun 30 '10 at 21:32

You can use psexec to spawn a copy of cmd.exe. This of course assumes that the firewalls don't block this type of access and whatever is broken for RDP is not also breaking other things.

share|improve this answer
It's worth noting that nearly every antivirus software I've used also blocks psexec. – John Gardeniers Jun 29 '10 at 23:20

I know this doesn't help with your immediate problem but we install a Cygwin ssh deamon on our Windows servers for this. I suggest that you may have a firewall issue today, fix that then get a ssh server on the machine. It doesn't have to be Cygwin, there are commerial alternatives. Firewall people are much happier about keeping port 22 open for secure traffic.

share|improve this answer

psexec is the quick answer, but doesn't allow a session.

For a richer environment use PowerShell Remoting (link to quick start from CTP timeframe, but should get you started).

share|improve this answer

Take a look at PsTools, specifically PsExec, which lets open a remote command shell.

Also, this question should probably be on ServerFault..

share|improve this answer
Does PsExec work over the Internet? I do not have domain access to this machine. – ep4169 Jun 29 '10 at 22:12
It relies on the SMB ports, which are almost always blocked. If you're stuck outside of the local network, then there are two ways you can get a shell. You can either hack your own server, or you can have installed something in the past. Or ask the support guys, of course.. – Dentrasi Jun 30 '10 at 7:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.