Public/generated/Get-KritTcmEXOHostedContentFilterPolicy.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-KritTcmEXOHostedContentFilterPolicy { <# .SYNOPSIS Krit.TCM shim for M365DSC resource EXOHostedContentFilterPolicy. .DESCRIPTION Auto-generated from M365DSC .schema.mof by scripts/m365-setup/Generate-KritTcmFromM365DscSchema.ps1 (.1507o30). Search-replace safe: callers that today invoke Get-M365DSCEXOHostedContentFilterPolicy -Credential $cred -TenantId $tid can rename to Get-KritTcmEXOHostedContentFilterPolicy -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_EXOHostedContentFilterPolicy\MSFT_EXOHostedContentFilterPolicy.schema.mof Param count: 48 Generator wave: .1507o30 #> [CmdletBinding()] param( # The Identity parameter specifies the name of the Hosted Content Filter Policy that you want to modify. [Parameter(Mandatory)] [string]$Identity, # The AddXHeaderValue parameter specifies the X-header value to add to spam messages when an action parameter is set to the value AddXHeader. [string]$AddXHeaderValue, # The AdminDisplayName parameter specifies a description for the policy. [string]$AdminDisplayName, # The BulkQuarantineTag parameter specifies the quarantine policy that's used on messages that are quarantined as bulk email. [string]$BulkQuarantineTag, # The BulkSpamAction parameter specifies the action to take on messages that are classified as bulk email. [ValidateSet('MoveToJmf','AddXHeader','ModifySubject','Redirect','Delete','Quarantine','NoAction')] [string]$BulkSpamAction, # The BulkThreshold parameter specifies the Bulk Complaint Level (BCL) threshold setting. Valid values are from 1 - 9, where 1 marks most bulk email as spam, and 9 allows the most bulk email to be delivered. The default value is 7. [int]$BulkThreshold, # The EnableLanguageBlockList parameter enables or disables blocking email messages that are written in specific languages, regardless of the message contents. Valid input for this parameter is $true or $false. The default value is $false. [bool]$EnableLanguageBlockList, # The EnableRegionBlockList parameter enables or disables blocking email messages that are sent from specific countries or regions, regardless of the message contents. Valid input for this parameter is $true or $false. The default value is $false. [bool]$EnableRegionBlockList, # The HighConfidencePhishAction parameter specifies the action to take on messages that are marked as high confidence phishing [ValidateSet('MoveToJmf','Redirect','Quarantine')] [string]$HighConfidencePhishAction, # The HighConfidencePhishQuarantineTag parameter specifies the quarantine policy that's used on messages that are quarantined as high confidence phishing. [string]$HighConfidencePhishQuarantineTag, # The HighConfidenceSpamAction parameter specifies the action to take on messages that are classified as high confidence spam. [ValidateSet('MoveToJmf','AddXHeader','ModifySubject','Redirect','Delete','Quarantine','NoAction')] [string]$HighConfidenceSpamAction, # The HighConfidenceSpamQuarantineTag parameter specifies the quarantine policy that's used on messages that are quarantined as high confidence spam. [string]$HighConfidenceSpamQuarantineTag, # The IncreaseScoreWithBizOrInfoUrls parameter increases the spam score of messages that contain links to .biz or .info domains. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$IncreaseScoreWithBizOrInfoUrls, # The IncreaseScoreWithImageLinks parameter increases the spam score of messages that contain image links to remote websites. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$IncreaseScoreWithImageLinks, # The IncreaseScoreWithNumericIps parameter increases the spam score of messages that contain links to IP addresses. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$IncreaseScoreWithNumericIps, # The IncreaseScoreWithRedirectToOtherPort parameter increases the spam score of messages that contain links that redirect to other TCP ports. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$IncreaseScoreWithRedirectToOtherPort, # The InlineSafetyTipsEnabled parameter specifies whether to enable or disable safety tips that are shown to recipients in messages. The default is $true [bool]$InlineSafetyTipsEnabled, # The IntraOrgFilterState parameter specifies whether to enable anti-spam filtering for messages sent between internal users (users in the same organization). [ValidateSet('Default','HighConfidencePhish','Phish','HighConfidenceSpam','Spam','Disabled')] [string]$IntraOrgFilterState, # The MakeDefault parameter makes the specified content filter policy the default content filter policy. The default value is $false [bool]$MakeDefault, # The MarkAsSpamBulkMail parameter classifies the message as spam when the message is identified as a bulk email message. Valid values for this parameter are Off, On or Test. The default value is On. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamBulkMail, # The MarkAsSpamEmbedTagsInHtml parameter classifies the message as spam when the message contains HTML <embed> tags. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamEmbedTagsInHtml, # The MarkAsSpamEmptyMessages parameter classifies the message as spam when the message is empty. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamEmptyMessages, # The MarkAsSpamFormTagsInHtml parameter classifies the message as spam when the message contains HTML <form> tags. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamFormTagsInHtml, # The MarkAsSpamFramesInHtml parameter classifies the message as spam when the message contains HTML <frame> or <iframe> tags. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamFramesInHtml, # The MarkAsSpamFromAddressAuthFail parameter classifies the message as spam when Sender ID filtering encounters a hard fail. Valid values for this parameter are Off or On. The default value is Off. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamFromAddressAuthFail, # The MarkAsSpamJavaScriptInHtml parameter classifies the message as spam when the message contains JavaScript or VBScript. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamJavaScriptInHtml, # The MarkAsSpamNdrBackscatter parameter classifies the message as spam when the message is a non-delivery report (NDR) to a forged sender. Valid values for this parameter are Off or On. The default value is Off. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamNdrBackscatter, # The MarkAsSpamObjectTagsInHtml parameter classifies the message as spam when the message contains HTML <object> tags. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamObjectTagsInHtml, # The MarkAsSpamSensitiveWordList parameter classifies the message as spam when the message contains words from the sensitive words list. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamSensitiveWordList, # The MarkAsSpamSpfRecordHardFail parameter classifies the message as spam when Sender Policy Framework (SPF) record checking encounters a hard fail. Valid values for this parameter are Off or On. The default value is Off. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamSpfRecordHardFail, # The MarkAsSpamWebBugsInHtml parameter classifies the message as spam when the message contains web bugs. Valid values for this parameter are Off, On or Test. The default value is Off. [ValidateSet('Off','On','Test')] [string]$MarkAsSpamWebBugsInHtml, # The ModifySubjectValue parameter specifies the text to prepend to the existing subject of spam messages when an action parameter is set to the value ModifySubject. [string]$ModifySubjectValue, # The PhishSpamAction parameter specifies the action to take on messages that are classified as phishing [ValidateSet('MoveToJmf','AddXHeader','ModifySubject','Redirect','Delete','Quarantine','NoAction')] [string]$PhishSpamAction, # The PhishQuarantineTag parameter specifies the quarantine policy that's used on messages that are quarantined as phishing. [string]$PhishQuarantineTag, # The SpamQuarantineTag parameter specifies the quarantine policy that's used on messages that are quarantined as spam. [string]$SpamQuarantineTag, # The QuarantineRetentionPeriod parameter specifies the length of time in days that spam messages remain in the quarantine. Valid input for this parameter is an integer between 1 and 30. The default value is 15. [int]$QuarantineRetentionPeriod, # The SpamAction parameter specifies the action to take on messages that are classified as spam (not high confidence spam, bulk email, or phishing). [ValidateSet('MoveToJmf','AddXHeader','ModifySubject','Redirect','Delete','Quarantine','NoAction')] [string]$SpamAction, # The TestModeAction parameter specifies the additional action to take on messages that match any of the IncreaseScoreWith or MarkAsSpam parameters that are set to the value Test. [ValidateSet('None','AddXHeader','BccMessage')] [string]$TestModeAction, # The PhishZapEnabled parameter enables or disables zero-hour auto purge (ZAP) to detect phishing messages in delivered messages in Exchange Online mailboxes. [bool]$PhishZapEnabled, # The SpamZapEnabled parameter enables or disables zero-hour auto purge (ZAP) to detect spam in delivered messages in Exchange Online mailboxes. [bool]$SpamZapEnabled, # Specify if this policy should exist or not. [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 'EXOHostedContentFilterPolicy' -Workload 'Exchange' -Verb 'Get' -CallerParams $PSBoundParameters } |