Public/generated/Get-KriticalUtcmEXODistributionGroup.ps1
|
# Kritical.PS.UTCM | Microsoft Graph UTCM REST API toolkit # (c) 2026 Kritical Pty Ltd | https://kritical.net # Kritical brand banner is rendered at module load via Write-KriticalUtcmBanner. function Get-KriticalUtcmEXODistributionGroup { <# .SYNOPSIS Kritical.UTCM shim for M365DSC resource EXODistributionGroup. .DESCRIPTION Search-replace safe: callers that today invoke Get-M365DSCEXODistributionGroup -Credential $cred -TenantId $tid can rename to Get-KriticalUtcmEXODistributionGroup -Credential $cred -TenantId $tid with ZERO other edits. Parameter shape matches the M365DSC .schema.mof exactly. By default -PreferM365DscBehavior is true. Actual Graph dispatch is delegated to Invoke-KriticalUtcmM365DscSchemaBridge. Bridge maps resource → Graph endpoint per per-resource wave; where mapping is not yet shipped, bridge returns an object with Verdict='UNMAPPED'. .NOTES Workload: Exchange Param count: 43 #> [CmdletBinding()] param( # The Identity parameter specifies the distribution group or mail-enabled security group that you want to modify. You can use any value that uniquely identifies the group. [Parameter(Mandatory)] [string]$Identity, # The Name parameter specifies a unique name for the address list. [Parameter(Mandatory)] [string]$Name, # Exchange alias (also known as the mail nickname) for the recipient [string]$Alias, # Is Bcc blocked for the distribution group. [bool]$BccBlocked, # The ByPassNestedModerationEnabled parameter specifies how to handle message approval when a moderated group contains other moderated groups as members. [bool]$BypassNestedModerationEnabled, # Description of the distribution group. [string]$Description, # The DisplayName parameter specifies the display name of the group. The display name is visible in the Exchange admin center and in address lists. The maximum length is 256 characters. [string]$DisplayName, # The HiddenGroupMembershipEnabled switch specifies whether to hide the members of the distribution group from members of the group and users who aren't members of the group. [bool]$HiddenGroupMembershipEnabled, # The MemberDepartRestriction parameter specifies the restrictions that you put on requests to leave the group. Valid values are: Open & Closed [ValidateSet('Open','Closed')] [string]$MemberDepartRestriction, # The MemberJoinRestriction parameter specifies the restrictions that you put on requests to join the group. Valid values are: Open, Closed & ApprovalRequired [ValidateSet('Open','Closed','ApprovalRequired')] [string]$MemberJoinRestriction, # The ModerationEnabled parameter specifies whether moderation is enabled for this recipient. [bool]$ModerationEnabled, # The Notes parameters specifies additional information about the object. [string]$Notes, # The OrganizationalUnit parameter specifies the location in Active Directory where the group is created. [string]$OrganizationalUnit, # The PrimarySmtpAddress parameter specifies the primary return email address that's used for the recipient. [string]$PrimarySmtpAddress, # The RequireSenderAuthenticationEnabled parameter specifies whether to accept messages only from authenticated (internal) senders. [bool]$RequireSenderAuthenticationEnabled, # The RoomList switch specifies that all members of this distribution group are room mailboxes. You don't need to specify a value with this switch. [bool]$RoomList, # This parameter specifies a value for the CustomAttribute1 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute1, # This parameter specifies a value for the CustomAttribute2 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute2, # This parameter specifies a value for the CustomAttribute3 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute3, # This parameter specifies a value for the CustomAttribute4 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute4, # This parameter specifies a value for the CustomAttribute5 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute5, # This parameter specifies a value for the CustomAttribute6 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute6, # This parameter specifies a value for the CustomAttribute7 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute7, # This parameter specifies a value for the CustomAttribute8 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute8, # This parameter specifies a value for the CustomAttribute9 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute9, # This parameter specifies a value for the CustomAttribute10 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute10, # This parameter specifies a value for the CustomAttribute11 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute11, # This parameter specifies a value for the CustomAttribute12 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute12, # This parameter specifies a value for the CustomAttribute13 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute13, # This parameter specifies a value for the CustomAttribute14 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute14, # This parameter specifies a value for the CustomAttribute15 property on the recipient. You can use this property to store custom information about the recipient, and to identify the recipient in filters. The maximum length is 1024 characters. If the value contains spaces, enclose the value in quotation marks. [string]$CustomAttribute15, # The HiddenFromAddressListsEnabled parameter specifies whether this recipient is visible in address lists. [bool]$HiddenFromAddressListsEnabled, # The SendOofMessageToOriginatorEnabled parameter specifies how to handle out of office (OOF) messages for members of the group. [bool]$SendOofMessageToOriginatorEnabled, # The SendModerationNotifications parameter specifies when moderation notification messages are sent. Valid values are: Always, Internal, Never. [ValidateSet('Always','Internal','Never')] [string]$SendModerationNotifications, # The Type parameter specifies the type of group that you want to create. Valid values are: Distribution, Security [ValidateSet('Distribution','Security')] [string]$Type, # Specifies if this AddressList should exist. [ValidateSet('Present','Absent')] [string]$Ensure, # Credentials of the Exchange Global Admin [string]$Credential, # Id of the Azure Active Directory application to authenticate with. [string]$ApplicationId, # Id of the Azure Active Directory tenant used for authentication. [string]$TenantId, # Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication. [string]$CertificateThumbprint, # Username can be made up to anything but password will be used for CertificatePassword [string]$CertificatePassword, # Path to certificate used in service principal usually a PFX file. [string]$CertificatePath, # Managed ID being used for authentication. [bool]$ManagedIdentity ) Invoke-KriticalUtcmM365DscSchemaBridge -ResourceName 'EXODistributionGroup' -Workload 'Exchange' -Verb 'Get' -CallerParams $PSBoundParameters } |