PowerShell | Find Users matching partial group name by employeeType

I needed a way to find out if any of our staff employeeType was part of incorrect distribution lists. Example: Classified staff shouldn’t be part of any distribution lists that contains “Licensed”. Here is the output: If you wanted to export this to a csv just add on “| Export-Csv C:\” to the end so […]

PowerShell | Find Users matching partial group name by employeeType Read More »

Powershell – Export users and select attributes from a single OU

Recently needed to find a way to export all staff into a csv file with only their name and EmployeeID. First I ran the GET-ADuser command below for a single user. This will display all the user’s attributes. Be sure to change username to a domain user. Now that you have a file with all

Powershell – Export users and select attributes from a single OU Read More »

Scroll to Top