Created
November 17, 2020 14:53
-
-
Save seanosullivanuk/d9b1d90541df78dafc60267bde86a500 to your computer and use it in GitHub Desktop.
List all Active Directory user accounts that have their security inheritance disabled
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
Get-ADUser -SearchBase "OU=Users,DC=internal,DC=example,DC=co,DC=uk" -Filter * -Properties nTSecurityDescriptor | ?{ $_.nTSecurityDescriptor.AreAccessRulesProtected -eq "True" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found this useful when a few AD accounts couldn't successfully reset passwords via AAD Writeback.