Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2016-08-29
4
Medium Priority
?
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
Ganesamoorthy S earned 2000 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

Featured Post

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…

722 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