Public/generated/Get-KritTcmEXORemoteDomain.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-KritTcmEXORemoteDomain {
<#
.SYNOPSIS
    Krit.TCM shim for M365DSC resource EXORemoteDomain.

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

    Search-replace safe: callers that today invoke
        Get-M365DSCEXORemoteDomain -Credential $cred -TenantId $tid
    can rename to
        Get-KritTcmEXORemoteDomain -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_EXORemoteDomain\MSFT_EXORemoteDomain.schema.mof
    Param count: 31
    Generator wave: .1507o30
#>

[CmdletBinding()]
param(
        # Specify the Identity for the RemoteDomain.
[Parameter(Mandatory)] [string]$Identity,
        # The DomainName parameter specifies the SMTP domain that you want to establish as a remote domain. A valid value is an SMTP domain (for example, contoso.com). The maximum length is 256 characters.
[string]$DomainName,
        # Specify if the RemoteDomain should exist or not.
[ValidateSet('Present','Absent')] [string]$Ensure,
        # The AllowedOOFType parameter specifies the type of automatic replies or out-of-office (also known as OOF) notifications than can be sent to recipients in the remote domain. Valid values are: External, ExternalLegacy, InternalLegacy or None
[ValidateSet('External','ExternalLegacy','InternalLegacy','None')] [string]$AllowedOOFType,
        # The AutoForwardEnabled parameter specifies whether to allow messages that are auto-forwarded by client email programs in your organization.
[bool]$AutoForwardEnabled,
        # The AutoReplyEnabled parameter specifies whether to allow messages that are automatic replies from client email programs in your organization (for example, automatic reply messages that are generated by rules in Outlook).
[bool]$AutoReplyEnabled,
        # The ByteEncoderTypeFor7BitCharsets parameter specifies the 7-bit transfer encoding method for MIME format for messages sent to this remote domain.
[ValidateSet('Use7Bit','UseQP','UseBase64','UseQPHtmlDetectTextPlain','UseBase64HtmlDetectTextPlain','UseQPHtml7BitTextPlain','UseBase64Html7BitTextPlain','Undefined')] [string]$ByteEncoderTypeFor7BitCharsets,
        # The CharacterSet parameter specifies a character set for MIME messages without defined character sets that are sent from your organization to recipients in the remote domain.
[string]$CharacterSet,
        # The ContentType parameter specifies the outbound message content type and formatting.
[ValidateSet('MimeHtmlText','MimeText','MimeHtml')] [string]$ContentType,
        # The DeliveryReportEnabled parameter specifies whether to allow delivery reports from client software in your organization to recipients in the remote domain.
[bool]$DeliveryReportEnabled,
        # The DisplaySenderName parameter specifies whether to show the sender's Display Name in the From email address for messages sent to recipients in the remote domain.
[bool]$DisplaySenderName,
        # The IsInternal parameter specifies whether the recipients in the remote domain are considered to be internal recipients.
[bool]$IsInternal,
        # The LineWrapSize parameter specifies the line-wrap size for messages to recipients in the remote domain. Valid values are an integer from 0 through 132 or the value to unlimited. The default value is unlimited.
[string]$LineWrapSize,
        # The MeetingForwardNotificationEnabled parameter specifies whether to enable meeting forward notifications for recipients in the remote domain.
[bool]$MeetingForwardNotificationEnabled,
        # The Name parameter specifies a unique name for the remote domain object. The maximum length is 64 characters. If the value contains spaces, enclose the value in quotation marks.
[string]$Name,
        # The NDREnabled parameter specifies whether to allow non-delivery reports (also known NDRs or bounce messages) from your organization to recipients in the remote domain.
[bool]$NDREnabled,
        # The NonMimeCharacterSet parameter specifies a character set for plain text messages without defined character sets that are sent from your organization to recipients in the remote domain.
[string]$NonMimeCharacterSet,
        # The PreferredInternetCodePageForShiftJis parameter specifies the specific code page to use for Shift JIS character encoding in messages that are sent to recipients in the remote domain.
[ValidateSet('50220','50221','50222','Undefined')] [string]$PreferredInternetCodePageForShiftJis,
        # The RequiredCharsetCoverage parameter specifies a percentage threshold for characters in a message that must match to apply your organization's preferred character set before switching to automatic character set detection.
[int]$RequiredCharsetCoverage,
        # The TargetDeliveryDomain parameter specifies whether the remote domain is used in cross-forest deployments to generate target email addresses for new mail users that represent users in the other organization (for example, all mailboxes hosted on Exchange Online are represented as mail users in your on-premises organization).
[bool]$TargetDeliveryDomain,
        # The TNEFEnabled parameter specifies whether Transport Neutral Encapsulation Format (TNEF) message encoding is used on messages sent to the remote domain.
[bool]$TNEFEnabled,
        # The TrustedMailInboundEnabled parameter specifies whether messages from senders in the remote domain are treated as trusted messages.
[bool]$TrustedMailInboundEnabled,
        # The TrustedMailOutboundEnabled parameter specifies whether messages sent to recipients in the remote domain are treated as trusted messages.
[bool]$TrustedMailOutboundEnabled,
        # The UseSimpleDisplayName parameter specifies whether the sender's simple display name is used for the From email address in messages sent to recipients in the remote domain.
[bool]$UseSimpleDisplayName,
        # 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 'EXORemoteDomain' -Workload 'Exchange' -Verb 'Get' -CallerParams $PSBoundParameters
}