Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

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

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
Jerry Seinfield
Asked:
Jerry Seinfield
  • 2
  • 2
1 Solution
 
Ganesamoorthy STech LeadCommented:
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
 
Jerry SeinfieldAuthor Commented:
so, the GPO will be applied to only this user?
0
 
Ganesamoorthy STech LeadCommented:
you can configure this for user OU or server OU and configure Computer Configuration and the User Configuration policy settings
0
 
Jerry SeinfieldAuthor Commented:
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

Featured Post

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now