remote access how to

remote access how toWe saw previously ONE method to log off a user, that was the clean way of gaining remote desktop.
There is another way, a dirty way but it works none-the-less, and gains your remote desktop:

This approach gives you remote access (sitting in front of the machine/console). Add the /Admin switch in the mstsc box.

Additional to this, you will approach also has the ability of allowing you to install some programs that will only install via console.

Remotely log off a user

If you like every other sysadmin have users that simply forget to log-off, throw the following in a batch script.
This script will need to run with admin rights.

 

 

echo off
cls
echo What is the machine name?
set /p server=
quser /server:%server%
set /p session=
logoff %session% /server:%server%
quser /server:%server%