Sign in
|
Join
Home
Blogs
Ask
Just Learned
Interview Questions
Puzzles
Tutorials
Quiz
Modules
Getting Started with Adobe After Effects - Part 6:
Motion Blur
Syndicated Blogs
Upload Image
Close it
Select File
This blog about the practical solutions for the problems that SQL server DBA face in their day to day work
Like
Invite Friends
Browse by Tags ·
View All
Internals
12
Index
12
Implimentation
6
Administration
6
Security
6
Failover cluster
6
Troubleshooting
5
Index Fragmentation
3
SSRS
2
Alerts
2
Archive ·
View All
September 2012
10
March 2013
9
August 2012
9
March 2012
9
July 2012
8
October 2012
5
June 2012
4
April 2012
4
April 2013
3
February 2012
2
PracticalSqlDba
Home
·
Most Liked
·
Most Discussed
·
Fans (26)
·
Preferences
How to log off remote desktop users from a remote machine ?
Mar 6 2012 12:00AM
by
Nelson John A
When you try to log on to a remote server on emergency to perform some task , it may throw an error "The terminal server has exceeded the maximum number of allowed connection". In many servers you may not have the rights to log on with /console or /admin option. I have faced this issue many times and the only option is to get the help from infrastructure team to log off users from the server.
I was searching for a solution for this and found an option to log off the remote desktop users from another machine (in the same domain) through command line. The first step to achieve is to list the current log on session on the remote computer. For that we can use following command from the command prompt. Replace the xx.xx.xx.xxx with your server IP address.
C:\>
quser /SERVER: xx.xx.xx.xxx
This will list the current log on session. Please find below screenshot. I have removed the IP address and log in name from the screenshot. You can see the session ID 0,1 and 2 for three available sessions. This is the ID which we will be using in our next step to log off user.
To log off session listed in the previous step, use the following command.Here I am trying to log off the session 0
C:\>
logoff /SERVER:xx.xx.xx.xxx 0 /V
Now you will be able to do the remote desktop to the server.
Previous:
Resource Governor Configuration
Next:
Memory configuration in SQL server and break up of memory utilized by SQL server
Republished from
Practical SQL DBA
[24 clicks]
. Read the original version
here
[2 clicks]
.
Nelson John A
478 ·
0% ·
78
1
Liked
1
Lifesaver
1
Refreshed
0
Learned
0
Incorrect
Like this
Post this to my facebook wall
Tweet this
This was a true life saver
Thanks, this helped me to refresh my memory
Very informative, I just learned something new
I disagree, this information is incorrect
Submit
Your Comment
Sign Up
or
Login
to post a comment.
"How to log off remote desktop users from a remote machine ?"
rated 5 out of 5 by 1 readers
How to log off remote desktop users from a remote machine ?
,
5.0
out of
5
based on
1
ratings
+Nelson John A
Copyright © Rivera Informatic Private Ltd
Contact us
Privacy Policy
Terms of use
Report Abuse
Advertising
[ZULU1097]