Bulk Edit Azure Group
2 TopicsHow to Bulk rename Security groups on AAD
Hi Team, I'm trying to rename over 100 Azure security groups using PowerShell but I just can't get the script to work without errors. I want to add "NG" to the output of the GetAzADGroup command # Get the group that we want to modify. $Group = Get-AzADGroup -DisplayNameStartsWith 'test' #Next line is to Import Csv with the new group name eg "NG-Test1, NG-Test2" etc # Import-Csv -Path C:\Users\Prince\Downloads\exportGroup_2022-6-15.csv | ForEach{Set-AzureADGroup -ObjectID $.objectid -Displayname $.displayname} I run into the following error "Set-AzureADGroup : Error occurred while executing SetGroup" I'll appreciate any help or pointers to resolve this. Thanks in advanceSolved5.9KViews0likes2CommentsBulk edit for Azure groups
import-CSV c:\temp\awsgroups.csv | ForEach (Set-DistributionGroup -Identity $.DistGroup - ManagedBy @{Add="<owner1>","<owner2>","<owner3>" I need to do a bulk edit to our Azure groups to add 3 owners to over 100 groups. I have a csv file named awsgroups.csv in my temp directory with the fields DistGroup, Owner 1, Owner 2, and Owner 3. I am running the above script and I get 'The operation couldnt be performed because object $.DistGroup couldnt be found on Prod.Outlook.com" Usually, I google powershell commands to do what I need to, but this one if giving me problems. Any help would be appreciates766Views1like1Comment