Problem:
I needed to add multiple users all in the same OU to multiple different groups using PowerShell
Continue reading “Add multiple users to multiple groups in AD using PowerShell”
DailySysAdmin | For all things IT!
A resource for Sys Admins & IT Pros
Problem:
I needed to add multiple users all in the same OU to multiple different groups using PowerShell
Continue reading “Add multiple users to multiple groups in AD using PowerShell”
To get a user report including all of the groups that each user is a member of use:
Import-module activedirectory Get-AdUser -Filter * -Properties * | select DisplayName, Title, Department, Manager, @{N=’Groups’; E={$($_.Memberof)}} | Export-csv "c:\temp\UsersandGroups.csv" -nti