Public/Graph/New-KritTcmMgBetaDeviceAppManagementMdmWindowsInformationProtectionPolicy.ps1

<#
.SYNOPSIS
    Krit.TCM wrapper over Microsoft365DSC helper New-MgBetaDeviceAppManagementMdmWindowsInformationProtectionPolicy
    (category: Graph, module: M365DSCGraphShim).

.DESCRIPTION
    Auto-scaffolded wave .1514 by New-KritTcmFromM365DscHelpers.ps1.
    Thin delegating passthrough — logic stays in Microsoft365DSC upstream;
    Krit.TCM provides the friendly namespace + citation registration
    for HARD RULE 20 discipline.

    Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling.

.NOTES
    Wave .1514. Underlying cmdlet: New-MgBetaDeviceAppManagementMdmWindowsInformationProtectionPolicy
    Category: Graph
    Module: M365DSCGraphShim
    Params: 42
#>

function New-KritTcmMgBetaDeviceAppManagementMdmWindowsInformationProtectionPolicy {
    [CmdletBinding()]
    param(
        [Hashtable] $BodyParameter,
        [String] $ResponseHeadersVariable,
        [Hashtable] $AdditionalProperties,
        [Object] $Assignments,
        [SwitchParameter] $AzureRightsManagementServicesAllowed,
        [DateTime] $CreatedDateTime,
        [Object] $DataRecoveryCertificate,
        [String] $Description,
        [String] $DisplayName,
        [Object] $EnforcementLevel,
        [String] $EnterpriseDomain,
        [Object] $EnterpriseIPRanges,
        [SwitchParameter] $EnterpriseIPRangesAreAuthoritative,
        [Object] $EnterpriseInternalProxyServers,
        [Object] $EnterpriseNetworkDomainNames,
        [Object] $EnterpriseProtectedDomainNames,
        [Object] $EnterpriseProxiedDomains,
        [Object] $EnterpriseProxyServers,
        [SwitchParameter] $EnterpriseProxyServersAreAuthoritative,
        [Object] $ExemptAppLockerFiles,
        [Object] $ExemptApps,
        [SwitchParameter] $IconsVisible,
        [String] $Id,
        [SwitchParameter] $IndexingEncryptedStoresOrItemsBlocked,
        [SwitchParameter] $IsAssigned,
        [DateTime] $LastModifiedDateTime,
        [Object] $NeutralDomainResources,
        [Object] $ProtectedAppLockerFiles,
        [Object] $ProtectedApps,
        [SwitchParameter] $ProtectionUnderLockConfigRequired,
        [SwitchParameter] $RevokeOnUnenrollDisabled,
        [String] $RightsManagementServicesTemplateId,
        [String[]] $RoleScopeTagIds,
        [Object] $SmbAutoEncryptedFileExtensions,
        [String] $Version,
        [SwitchParameter] $Break,
        [IDictionary] $Headers,
        [Object[]] $HttpPipelineAppend,
        [Object[]] $HttpPipelinePrepend,
        [Uri] $Proxy,
        [PSCredential] $ProxyCredential,
        [SwitchParameter] $ProxyUseDefaultCredentials
    )

    if (-not (Get-Command -Name 'New-MgBetaDeviceAppManagementMdmWindowsInformationProtectionPolicy' -ErrorAction SilentlyContinue)) {
        throw '[KritTcm] New-MgBetaDeviceAppManagementMdmWindowsInformationProtectionPolicy not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run'
    }
    try {
        & 'New-MgBetaDeviceAppManagementMdmWindowsInformationProtectionPolicy' @PSBoundParameters
    } catch {
        Write-Error ('[KritTcm/New-KritTcmMgBetaDeviceAppManagementMdmWindowsInformationProtectionPolicy] ' + 'New-MgBetaDeviceAppManagementMdmWindowsInformationProtectionPolicy' + ' failed: ' + $_.Exception.Message)
        throw
    }
}