Reset RDP Sessions

When using Windows RDP you may encounter the error message ‘The terminal server has exceeded the maximum number of allowed connections’. You can delete open sessions or use the admin switch to administer the server.

At the command prompt:
To administer the server:

mstsc /v:<server> /admin

To obtain a list of current sessions:

query session /server:<server>

To close a session – [ID] can be found from session list

reset session [ID] /server:<server>

Get Serial Number From A Windows Machine

On a Windows based operating system you can find out the serial number for a machine using WMIC – the command line interpreter for WMI. This can be used for the local machine or a remote machine.

From the command prompt:

For the local machine

wmic bios get serialnumber

For remote machine(s) using /node

wmic /node:[ADDRESS/COMPUTER NAME] bios get serialnumber

Computer names either comma delimited or listed within a file. File names have to be prefixed with &. Computer names/addresses within the file must be comma delimited or on separate lines.