Created
October 27, 2021 17:31
-
-
Save NicholasLeader/42fd8eccfb8ee72f474992af49d44567 to your computer and use it in GitHub Desktop.
PowerShell get an AD group and random sort it by name
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
# Nicholas Leader | |
# 10.27.2021 | |
# AD group random sort | |
(Get-ADGroupMember 'Name_of_AD_group).name | sort-object -property {get-random} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment