Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Bulk add to group and change password w/ QAD

$
0
0

I am trying to bulk add users to a group using QAD and change their password.
Is there any reason that the below code shouldn't work?

import-csv C:\Scripts\groups.csv | foreach {
Add-QADGroupMember -Identity $_.GroupName -Member $_.Members.Split(";")
Set-QADUser -Identity $_.Members.Split(";") -UserPassword $_.Password1
}


Viewing all articles
Browse latest Browse all 8583

Latest Images

Trending Articles



Latest Images