Last active
August 29, 2015 13:56
-
-
Save normansolutions/8972413 to your computer and use it in GitHub Desktop.
For use on blog post: http://www.normansolutions.co.uk/post/PowerShell to secure AD users RDP access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction SilentlyContinue | |
Get-QADUser * -OrganizationalUnit "ou=Your Sub-OU,ou=Your OU,dc=Your LDAP,dc=Your LDAP" | | |
?{$_.TsAllowLogon -ne $true} | | |
Set-QADUser -TsAllowLogon $true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment