Windows server 2003 – How to check and reset RDP sessions via command line

Posted by aidas | Posted in Command line, Windows 2003 | Posted on 03-07-2009

0

Have you ever encountered this annoying window when trying to access Windows server 2003 via Remote Desktop connection?

Terminal sessions exceeded

It draws me mad every time i see it !

So  i`ll show you how can we get rid of it in a few seconds.

Lets say that session limit was reached on server named “Testserver”.

Login to another Windows server 2003 in your domain, open command line and type:

query session /server:Testserver

terminal1

Press “Enter”

In output you will get information about taken sessions: what user is using it, session ID and status.

If you want to reset specific session note session ID you are going to reset. Lets say ID number is 2.

Open command line and the type following:

reset session 2 /server:Testserver

terminal2

Press “Enter”

Thats all ! The road is clear for now…

Windows server 2008 Core – How to enable remote desktop administration via command line

Posted by aidas | Posted in Command line, Windows 2008 | Posted on 03-05-2009

0

This how to will show command which enables remote desktop administration on your Windows server 2008 Core server. Note that you`ll be presented with no GUI after remote desktop connection to Core server. Only minimal command line interface will be available for you. To enable it type:

cscript %windir%\system32\SCRegEdit.wsf /ar 0