Closed A-J-A closed 2 years ago
Hello - please download the lastest version.
Code was changed to stop using mailNickname after it was determined that mailNickName does not have a unique constraint. Now when the DL is created we automatically update the post create configuration - and use the externalDirectoryObjectID for each call from that point forward.
That should eliminate this moving forward.
Hi, I have just updated to v 2.5.14.0 but get this error:
Name DisplayName GroupType PrimarySmtpAddress
Department of Engineering_7357ca4364 Department of Engineering Universal, SecurityEnabled DepartmentofEngineering@xmail.ac.uk
Name DisplayName GroupType PrimarySmtpAddress
Department of Engineering_451d208347 Department of Engineering Universal, SecurityEnabled DepartmentofEngineering@xmail.ac.uk
[18/03/2022 13:35:43] - Group Type Override = None [18/03/2022 13:35:43] - The group type for evaluation is = -2147483640 [18/03/2022 13:35:43] - A group type override was not specified. Using group type from on premises. [18/03/2022 13:35:43] - The group type from on premises is security. [18/03/2022 13:35:43] - Creating the distribution group in Office 365. [18/03/2022 13:35:43] - On premises group has a mail nickname specified - using on premsies value. [18/03/2022 13:35:43] - DepartmentofEngineering There are multiple recipients matching identity "Department of Engineering". Please specify a unique value. At C:\Users\admin\AppData\Local\Temp\tmp_nhuyz1u4.f01\tmp_nhuyz1u4.f01.psm1:39124 char:9
+ CategoryInfo : NotSpecified: (:) [New-DistributionGroup], TaskException
+ FullyQualifiedErrorId : [Server=VE1P192MB0768,RequestId=93447054-ebf8-4a70-a1aa-b058601d0285,TimeStamp=18/03/2022 13:35:44] [FailureCategory=Cmdlet-TaskException] 256D8A2,Microsoft.Exchange.Managemen
t.RecipientTasks.NewDistributionGroup
Out-LogFile : There are multiple recipients matching identity "Department of Engineering". Please specify a unique value. At C:\Users\admin\Documents\WindowsPowerShell\Modules\DLConversionV2\2.5.14.0\New-Office365DL.ps1:135 char:13
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Out-LogFile
Confirm that you updated from the powershell gallery? I ask because I had a other customer with the same yesterday but it was still using older module code. If so please send me the full log @.***
============================== Timothy J. McMichael Senior Support Escalation Engineer @.**@.> (980)-776-7465
Hours: Sunday – Wednesday 08:00 – 16:00 eastern time zone.
Manager: Tom Roughley @.**@.>)
Premier Support - (800)-936-3100 Broad Commercial Support - (800)-936-4900
==============================
From: A-J-A @.> Sent: Friday, March 18, 2022 9:44 AM To: timmcmic/DLConversionV2 @.> Cc: Tim McMichael @.>; Comment @.> Subject: Re: [timmcmic/DLConversionV2] There are multiple recipients matching identity. Please specify a unique value (Issue #41)
Hi, I have just updated to v 2.5.14.0 but get this error:
Name DisplayName GroupType PrimarySmtpAddress
Department of Engineering_7357ca4364 Department of Engineering Universal, SecurityEnabled @.**@.>
Name DisplayName GroupType PrimarySmtpAddress
Department of Engineering_451d208347 Department of Engineering Universal, SecurityEnabled @.**@.>
[18/03/2022 13:35:43] - Group Type Override = None [18/03/2022 13:35:43] - The group type for evaluation is = -2147483640 [18/03/2022 13:35:43] - A group type override was not specified. Using group type from on premises. [18/03/2022 13:35:43] - The group type from on premises is security. [18/03/2022 13:35:43] - Creating the distribution group in Office 365. [18/03/2022 13:35:43] - On premises group has a mail nickname specified - using on premsies value. [18/03/2022 13:35:43] - DepartmentofEngineering There are multiple recipients matching identity "Department of Engineering". Please specify a unique value. At C:\Users\admin\AppData\Local\Temp\tmp_nhuyz1u4.f01\tmp_nhuyz1u4.f01.psm1:39124 char:9
*
$steppablePipeline.End()
*
~~~~~~~~~~~~~~~~~~~~~~~~
* CategoryInfo : NotSpecified: (:) [New-DistributionGroup], TaskException
* FullyQualifiedErrorId : [Server=VE1P192MB0768,RequestId=93447054-ebf8-4a70-a1aa-b058601d0285,TimeStamp=18/03/2022 13:35:44] [FailureCategory=Cmdlet-TaskException] 256D8A2,Microsoft.Exchange.Managemen
t.RecipientTasks.NewDistributionGroup
Out-LogFile : There are multiple recipients matching identity "Department of Engineering". Please specify a unique value. At C:\Users\admin\Documents\WindowsPowerShell\Modules\DLConversionV2\2.5.14.0\New-Office365DL.ps1:135 char:13
*
Out-LogFile -string $_ -isError:$TRUE
*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
* FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Out-LogFile
— Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftimmcmic%2FDLConversionV2%2Fissues%2F41%23issuecomment-1072425369&data=04%7C01%7Ctimmcmic%40microsoft.com%7Cfc8a693fc1b9434f375408da08e57c0d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637832078965699612%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=VCnikHk%2BTCH3SleYE5lZNOIqUsLRnHovSfl9CyL%2BZsU%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKGTN6NLW367GNKZGXAOCMLVASCFNANCNFSM5Q4CL3BA&data=04%7C01%7Ctimmcmic%40microsoft.com%7Cfc8a693fc1b9434f375408da08e57c0d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637832078965749597%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=nvKbLeWg1Il8ERwoL%2BUpe5JL3tacGJ%2FtQRgAp7U4DUs%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Ctimmcmic%40microsoft.com%7Cfc8a693fc1b9434f375408da08e57c0d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637832078965749597%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Y1ALdapIL7FdY9XiwXSf1KQXNfi%2F0htkFwliPxkMNwg%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Ctimmcmic%40microsoft.com%7Cfc8a693fc1b9434f375408da08e57c0d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637832078965749597%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ErsES0yB%2Bfz9g%2Fp4n%2B1%2FZAkXVEZ7tK4Nve0BcoQTncM%3D&reserved=0. You are receiving this because you commented.Message ID: @.***>
Hi! Ok thank you for posting this.
So I went through and took some more changes. The first was to also move the unambiguous DL creation into new DL. So it looks like new DL, set DL etc all trip up when there's other things that come close to matching across all attributes like name / alias / etc.
So now the code creates a generic blank DL - then later on renames it which eliminates all collisions. The set operations now use externalDirectoryObjectID - which allows it to reference the exact group that was created.
Can you try this new build 2.5.14.1 and advise?
Tim
Hi, Just been using the script to migrate a Mail-enabled security group, the migration fails with the error ‘There are multiple recipients matching identity "Department of Engineering". Please specify a unique value.’
2 other groups are (not mail-enabled) are being synced already with the same display name.
Any recommendations on a workaround?