Warning: Undefined variable $ub in /home/sgso7sed/public_html/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 148

Warning: Undefined variable $ub in /home/sgso7sed/public_html/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 160
Logoff user from a remote machine SQL Server Monitoring • PowerShell

Categories:

Windows Servers allow the maximum of two concurrent remote sessions by default.

To remotely logoff any users on the list, use the command line:

### list users
qwinsta /server:servername.dom.local

### logoff users
logoff 2 /server:servername.dom.local

### Where 2 is session ID and servername.dom.local is server name

Tags:

340 Responses

Leave a Reply