Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No
Ads
Tom's Hardware > Forum > Windows 2000/NT > General Discussion > Using qwinsta to drop terminal services sessions

Using qwinsta to drop terminal services sessions

Forum Windows 2000/NT : General Discussion Using qwinsta to drop terminal services sessions

Word :    Username :           
 

Archived from groups: microsoft.public.windowsnt.terminalserver.connectivity (More info?)

 

Hi,

I have locked myself out of a co-located machine (win2000) which I normally
use terminal services to access. The two sessions have become disconected
(but still active), and I recieve a liscensing error if I now try to
connect.

I have tried to drop the sessions by using qwinsta and rwinsta from our
development server (win2000) but recieve the following error:

Error opening Terminal server xxx.xxx.xxx.xxx
Error [1722]:The RPC server is unavailable.

Now the co-located machine is behind a firewall, but has port 3389 opened up
for terminal services access from our IP. Does qwinsta use any other ports?

One thing I do not understand about these two tools is authentication.
There is no optoin to enter a username password to get the query
information - does this mean that it will only work in a trust relationship
(the two machine are on unrelated domains) or qwinsta normally just offer
this information to anyone who asks?

Thanks for any info

Reply to Anonymous
Register or log in to remove.

Archived from groups: microsoft.public.windowsnt.terminalserver.connectivity (More info?)

 

Sosh,
If the user acccount that runs qwinsta/rwinsta that is not known to the
remote machine, then you need to setup a 'trust' relationship. One way to to
it is run net use \\remoteMachine before running qwinsta/rwinsta
hope it helps

Thanks
Soo Kuan

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"sosh" <sosh@something.com> wrote in message
news:OfHCIv4EFHA.3780@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I have locked myself out of a co-located machine (win2000) which I
> normally
> use terminal services to access. The two sessions have become disconected
> (but still active), and I recieve a liscensing error if I now try to
> connect.
>
> I have tried to drop the sessions by using qwinsta and rwinsta from our
> development server (win2000) but recieve the following error:
>
> Error opening Terminal server xxx.xxx.xxx.xxx
> Error [1722]:The RPC server is unavailable.
>
> Now the co-located machine is behind a firewall, but has port 3389 opened
> up
> for terminal services access from our IP. Does qwinsta use any other
> ports?
>
> One thing I do not understand about these two tools is authentication.
> There is no optoin to enter a username password to get the query
> information - does this mean that it will only work in a trust
> relationship
> (the two machine are on unrelated domains) or qwinsta normally just offer
> this information to anyone who asks?
>
> Thanks for any info
>
>
>

Reply to Anonymous

Archived from groups: microsoft.public.windowsnt.terminalserver.connectivity (More info?)

 

Thanks for the info Soo.

I've set up an exact copy of the production admin account on the dev server,
but still get the error. I used a packet sniffer, and it seems that qwinsta
is trying to communicate on port 445. I'll get that opened up for our IP
and cross my fingers.


"Soo Kuan Teo [MSFT]" <sookuant@online.microsoft.com> wrote in message
news:%23CGB%23u7EFHA.732@TK2MSFTNGP12.phx.gbl...
> Sosh,
> If the user acccount that runs qwinsta/rwinsta that is not known to the
> remote machine, then you need to setup a 'trust' relationship. One way to
to
> it is run net use \\remoteMachine before running qwinsta/rwinsta
> hope it helps
>
> Thanks
> Soo Kuan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
>
> "sosh" <sosh@something.com> wrote in message
> news:OfHCIv4EFHA.3780@TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > I have locked myself out of a co-located machine (win2000) which I
> > normally
> > use terminal services to access. The two sessions have become
disconected
> > (but still active), and I recieve a liscensing error if I now try to
> > connect.
> >
> > I have tried to drop the sessions by using qwinsta and rwinsta from our
> > development server (win2000) but recieve the following error:
> >
> > Error opening Terminal server xxx.xxx.xxx.xxx
> > Error [1722]:The RPC server is unavailable.
> >
> > Now the co-located machine is behind a firewall, but has port 3389
opened
> > up
> > for terminal services access from our IP. Does qwinsta use any other
> > ports?
> >
> > One thing I do not understand about these two tools is authentication.
> > There is no optoin to enter a username password to get the query
> > information - does this mean that it will only work in a trust
> > relationship
> > (the two machine are on unrelated domains) or qwinsta normally just
offer
> > this information to anyone who asks?
> >
> > Thanks for any info
> >
> >
> >
>
>

Reply to Anonymous

Damn! net use \\serverName actually allows a trusted relationship btw the client and host.

using: qwinsta /server:serverName queries rdp sessions... and finally
rwinsta 1 /server:serverName to terminate the target session; where 1 is the session No.


Thanks folks! Now i will never worry about being locked out of an rdp session!

Reply to Anonymous
Register or log in to remove.
Tom's Hardware > Forum > Windows 2000/NT > General Discussion > Using qwinsta to drop terminal services sessions
Go to:

There are 1531 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
  • Ask the community now
  • Publish
Ad
Ads
Latest best answer
Restoring an acronis image of NT 4.0
By hang-the-9, 28 days ago:

After you do the restore, before booting the image, boot off an NT 4 CD, start a command...

Best offers
They won a badge
Join us in greeting them