Last active
June 5, 2019 19:47
-
-
Save jd-raymaker/863afde1f1f08f64b124021fe629751d to your computer and use it in GitHub Desktop.
AD wildcard supported search
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
#No need to replace any variables. Copy and paste, then enter the search string. | |
#Supports wildcards anywhere. Example: *somegroup* | |
$search = Read-Host "Search for AD Group"; Get-ADGroup -Filter {Name -like $search} | Select name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment