File Format
Import-Csv "C:\Users\Administrator\Desktop\bulkuserandgroup.csv" | Group-Object Group | % {
$users = $_.Group | % { Get-ADUser $_.Accountname }
Remove-adgroupmember -identity $_.Name -members $users -Confirm:$false
}
its working thanks
its working thanks
ReplyDelete