Use case · Active Directory
Bulk AD changes, without the domain-wide surprise.
Users, groups, computers, OUs and GPOs, with the filter and search base checked against what you meant.
No card required. Your script is never executed.
Three patterns we flag
Disables every account that matches an empty filter
Get-ADUser -Filter * -SearchBase $ou | Disable-ADAccountRemoves members from a privileged group
Get-ADGroupMember "Domain Admins" | Remove-ADGroupMember -Identity "Domain Admins" -Confirm:$falseDeletes computer objects with no age check
Get-ADComputer -Filter * | Remove-ADComputer -Confirm:$false
Sample: restart-servers.ps1
Real pattern, synthetic script. Unfiltered tenant-wide target.
What we check
- Empty or wildcard filters and search bases
- Privileged group changes
- Object deletion without the Recycle Bin
- -Confirm:$false on destructive cmdlets
Check the next script before it runs.