Good morning,
We're working towards eliminating the Exchange Server 2016 CU22 installation in favor of the Exchange Management Tools from Exchange Server 2019. When this is done, as I understand it, the on-premises EAC will be unavailable. I'm testing the ability to update the RequireSenderAuthenticationEnabled property on the Deserialized.Microsoft.Exchange.Data.Directory.Management.DistributionGroup object and am getting the error below:
Write-ErrorMessage : |System.InvalidOperationException|The operation on Identity "<GUID Removed>" failed because it's out of the current user's write scope. The
action 'Set-DistributionGroup', 'RequireSenderAuthenticationEnabled', can't be performed on the object '<GUID Removed>' because the object is being synchronized
from your on-premises organization. This action should be performed on the object in your on-premises organization.
At C:\Users\sbeane-adm\AppData\Local\Temp\22\tmpEXO_qsltvmww.5u5\tmpEXO_qsltvmww.5u5.psm1:1121 char:13
+ Write-ErrorMessage $ErrorObject
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**+ CategoryInfo : InvalidOperation: ("<GUID Removed>":ADObjectId) [Set-DistributionGroup], InvalidOperationException**
**+ FullyQualifiedErrorId : [Server=YT3PR01MB5028,RequestId="<GUID Removed>",TimeStamp=Thu, 16 Mar 2023 15:12:24 GMT],Write-ErrorMessage**
Documentation indicates that the Set-DistributionGroup cmdlet is available in the service and on-prem but when I disconnect from ExchangeOnline and run the Get-Command Set-DistributionGroup command it reports "get-command : The term 'set-distributiongroup' is not recognized as the name of a cmdlet, function, script file, or operable program."
My questions are these:
- What module, contains the command that can be used on -prem ?
- Is it the msExchRequireAuthToSendTo property on the group properties on the on-prem object in AD that needs to be updated ? The current value in ADUC appears to be Not Set which is unexpected.
Thanks for any assistance you can provide.
Regards,
Scott