Last active
September 11, 2017 15:34
-
-
Save mczerniawski/448add24a5a675e4e19902d86cecea9f to your computer and use it in GitHub Desktop.
Check OU permissions
This file contains hidden or 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
| $OUsServers = @('OU=TestBedSecurity,OU=Servers,DC=contoso,DC=com') | |
| $OUsWorkstations =@('OU=TestBedSecurity,OU=Workstations,DC=contoso,DC=com') | |
| $OUsServers | ForEach-Object { | |
| Find-AdmPwdExtendedRights -identity $_ | fl | |
| } | |
| $OUsWorkstations | ForEach-Object { | |
| Find-AdmPwdExtendedRights -identity $_ | fl | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment