Last active
July 30, 2018 12:42
-
-
Save hansgafriedzal/62a780b1cda7520f2c76f06299080975 to your computer and use it in GitHub Desktop.
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
Get-ADUser -Filter * -Property userAccountControl ` | |
| Where {[Convert]::ToString($_.useraccountcontrol,2).PadLeft(25,'0').substring(23,1) -eq '1'} ` | |
| Select userAccountControl -Unique ` | |
| Sort -Property userAccountControl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment