Using qwinsta to drop terminal services sessions

G

Guest

Guest
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
 
G

Guest

Guest
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
>
>
>
 
G

Guest

Guest
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
> >
> >
> >
>
>
 
G

Guest

Guest
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!