Solved

kill all RDP sessions from all domain joined servers for a specific user in AD

Posted on 2016-08-29
4
67 Views
Last Modified: 2016-09-08
Hello Experts,

I have a customer who his admin account is being locked from AD very random. After checking all security logs, more specifically for 4740 events, we can identify the source of the locked accounts appears to be a domain controller in Azure. My client has a hybrid AD-Azure and Office 365- Exchange 2010.



So, I've been looking for a tool that can kill all RDP sessions of a user named Jdoe for all Windows servers in a domain.



Are you aware of such as that tool, script, or PowerShell cmdlet that kills all RDP sessions from all windows servers in a domain?



If so, can you please provide instructions step by step to perform the tasks



Please, make sure to test your script, cmdlet, or tool, and send screenshots with results



Thanks
0
Comment
Question by:Jerry Seinfield
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
Ganesamoorthy S earned 500 total points
ID: 41775094
configure timeout session through GPO to fix this issue permanently

https://technet.microsoft.com/en-us/library/cc754272(v=ws.11).aspx

or use below command to kill the session

quser /server:servername

and notedown the session

logoff /server:servername session ID
1
 

Author Comment

by:Jerry Seinfield
ID: 41775189
so, the GPO will be applied to only this user?
0
 
LVL 6

Expert Comment

by:Ganesamoorthy S
ID: 41775195
you can configure this for user OU or server OU and configure Computer Configuration and the User Configuration policy settings
0
 

Author Comment

by:Jerry Seinfield
ID: 41775204
I would like to clarify, that I would like to be able to close all RDP sessions from all servers only to one user.

can you please elaborate on this?
0

Join & Write a Comment

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now