Skip to content

Instantly share code, notes, and snippets.

@NicholasLeader
Created October 27, 2021 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NicholasLeader/42fd8eccfb8ee72f474992af49d44567 to your computer and use it in GitHub Desktop.
Save NicholasLeader/42fd8eccfb8ee72f474992af49d44567 to your computer and use it in GitHub Desktop.
PowerShell get an AD group and random sort it by name
# 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