Quantcast
Channel: Butsch.ch
Viewing all articles
Browse latest Browse all 185

Powershell: Add users to Active Directory Group membership from file

$
0
0

How to add user accounts to a membership of an Active Directory Group.

Users in File: C:\edv\bbuser.csv

Active Directory Group: SG_Blackberry_User_2010

Users: m.butsch and assistant

(First LINE has to be UserName an not a user)

Import-module ActiveDirectory

Import-CSV "C:\edv\bbUser.csv" | % { Add-ADGroupMember -Identity SG_Blackberry_User_2010 -Member $_.UserName }

 


Viewing all articles
Browse latest Browse all 185

Trending Articles