Public/generated/Get-KritTcmEXODistributionGroup.ps1

<#
·· × × × ··· SirJ's Deaddrop ··· × × × ···
      — If you found this, you were meant to —

---------------- A Seriously Kritical™ Production ----------------

                                   [] →
                 (¯`·.¸¸.·´¯)
               .·´ `·. [] →
               `·.______________.·´
              | +------------------+ |
              | | Kritical™ | |
              | | [] [] | |
              | | | |
              | | [] [] [] | |
              | +------------------+ |
                  (._.·´¯`·.¸_)

                     Your last call.
                   And your first move.

                         ★ ☆ ★

                     +61 1300 274 655
                 sales at kritical dot net

-----------------------------------------------------------------


.COPYRIGHT
    (c) 2026 Kritical Pty Ltd. All rights reserved.
.AUTHOR
    Joshua Finley <joshua.finley@kritical.net>
.COMPANY
    Kritical Pty Ltd | ABN 39 687 048 086
    Level 4 / 60 Moorabool St Geelong VIC 3220
    1300 274 655 | sales@kritical.net | https://kritical.net/
.NOTES
    HARD RULE 13 canonical Kritical branding — do not overlay other agent banners.
    Auto-generated by Generate-KritTcmFromM365DscSchema.ps1 (.1507o30+).
    Upstream reference: Microsoft365DSC by Microsoft (MIT). This shim provides
    literal search-replace equivalence — see Krit.TCM/generated/index.md.
#>


function Get-KritTcmEXODistributionGroup {
<#
.SYNOPSIS
    Krit.TCM shim for M365DSC resource EXODistributionGroup.

.DESCRIPTION
    Auto-generated from M365DSC .schema.mof by
    scripts/m365-setup/Generate-KritTcmFromM365DscSchema.ps1 (.1507o30).

    Search-replace safe: callers that today invoke
        Get-M365DSCEXODistributionGroup -Credential $cred -TenantId $tid
    can rename to
        Get-KritTcmEXODistributionGroup -Credential $cred -TenantId $tid
    with ZERO other edits. Parameter shape matches the M365DSC .schema.mof
    exactly. Per operator direction, -PreferM365DscBehavior defaults to true.

    Actual Graph dispatch is delegated to Invoke-KritTcmM365DscSchemaBridge.
    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
    Original mof: C:\Users\joshl\OneDrive - Kritical Pty Ltd\Github\KRTPax8ToShopifyConnector\.kritm365-mine\Microsoft365DSC\Modules\Microsoft365DSC\DSCResources\MSFT_EXODistributionGroup\MSFT_EXODistributionGroup.schema.mof
    Param count: 43
    Generator wave: .1507o30
#>

[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-KritTcmM365DscSchemaBridge -ResourceName 'EXODistributionGroup' -Workload 'Exchange' -Verb 'Get' -CallerParams $PSBoundParameters
}