Link to home
Get AccessLog in
Avatar of Mike Dias
Mike Dias

asked on

Powershell - Batch Update AD User Object > Member Of Tab

I have over 80 users that I need to update their "Member Of" field in their AD User Object > Member Of Tab

I have two GPOs to add, possibly three.

The users are in a txt and CSV file.

Is there a PS script that will process the update?
Avatar of Qlemo
Flag of Germany image

Import-Csv GroupMembers.csv | % { Add-ADGroupMember $_.Group -Member $_.User }

Open in new window

If the csv fle has rhe columns Group and User, and only a single user per row.
Avatar of Mike Dias
Mike Dias


Thanks for this. I'll try this tomorrow.
Avatar of Mike Dias
Mike Dias

Link to home
This content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access
Script based and solves the issue.