Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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'm using copSSH sshd on Windows Server 2003 to log in to a cygwin environment and boot abandoned Terminal Services sessions.

The server is a virtual machine hosted by my ISP, and the 'mstsc /console' trick doesn't seem to work.

There are 2 commands that I am interested in running from my cygwin session: qwinsta.exe and rwinsta.exe. My question is, why can I see/use qwinsta.exe but not rwinsta.exe? When I browse to /cygdrive/c/WINDOWS/system32 and list the contents of the directory, rwinsta.exe doesn't even show up.

I have compared permissions using cacls, and they are set up the same.
When I move rwinsta.exe to another folder, I can see it. The file is not marked as system or hidden, what am I missing?

UPDATE: Fixed using answer below

1) install Server 2003 Resource kit tools

2) create a junction point

linkd c:\bin\realsys32 c:\WINDOWS\system32

3) add c:\bin\realsys32 to the system path

share|improve this question
up vote 3 down vote accepted

This is probably a X64 server. And the rwinsta.exe exist only in the real system32 folder.

ssh service on the server is x32 process. So it is redirected to syswow64 directory when it asks for the system32 directory. And this directory doesn't have the rwinsta.exe

You can find fix/Workaround in this article.

share|improve this answer
This is exactly what was happening. I created an NTFS junction point and accessed it that way and I could see the file. – user21034 Sep 23 '09 at 19:09

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.