r/PowerShell • u/SoyBoy_64 • 21d ago
Script Sharing ADSearch - User/Computer comparison tool
This Active Directory toolkit offers user/computer OU comparisons using fuzzy Levenshtein matching to determine if the computer is in an OU that matches the user's OU. Designed for large enterprise IT audits/asset management of complex (2+ OU levels) AD environments
ADSearch/README.md at main · Contoso-Administrator/ADSearch
Edit: Made some edits based on everyone's kind words :)
0
Upvotes
View all comments
3
u/BlackV 21d ago edited 21d ago
Get-NormalizedName,Resolve-SamAccountNameand others, why?export-excelwhy not just have that as a parameter instead of a whole other script (with duplicated functions)?anron the-filterparameter for ad users? (bad wording sorry, changed it)your here string can include formatting, and would clean up a bunch of code (but so would removing it)
if/ifelse/elseandreturns