I have a task i’m trying to complete that will:
- Check against a hard coded folder path list for their security
- If a user is part of that security group that isnt in an approved Group it needs to be reported (exclusions for Administrators, Domain admins, etc…)
This script will be ran locally on each of the servers, with domain credentials.
Is there a way with powershell to determine what Groups a User is part of on the domain, without being on the domain controller?