r/PowerShell • u/SoyBoy_64 • 20d 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/Nekro_Somnia 20d ago
Besides the question of "why", I ask myself why you'd define the vars that you expect to be changed by someone who runs the script.
Why not define them as parameters and fall back to an output that reminds the user that those need to be defined for the script to work?
A comment based help would be nice as well. Otherwise people need to reference the readme every time they run the script and forgot how to work it.
This might be useful to about 2% of companies in about 2% of their audits, if it were less clunky