Set-PolicyConfig
此 Cmdlet 僅適用于安全 & 性合規性 PowerShell。 如需詳細資訊,請參閱 安全 & 性合規性 PowerShell。
使用 Set-PolicyConfig Cmdlet 來修改組織中設定的端點限制。
如需下方<語法>一節中參數集的詳細資訊,請參閱 Exchange Cmdlet 語法。
Syntax
Set-PolicyConfig
[[-Identity] <OrganizationIdParameter>]
[-CaseHoldPolicyLimit <Int32>]
[-ClassificationScheme <ClassificationScheme>]
[-ComplianceUrl <String>]
[-Confirm]
[-DlpAppGroups <PswsHashtable[]>]
[-DlpAppGroupsPsws <PswsHashtable[]>]
[-DlpNetworkShareGroups <PswsHashtable>]
[-DlpPrinterGroups <PswsHashtable>]
[-DlpRemovableMediaGroups <PswsHashtable>]
[-DocumentIsUnsupportedSeverity <RuleSeverity>]
[-EnableAdvancedRuleBuilder <Boolean>]
[-EnableLabelCoauth <Boolean>]
[-EnableSpoAipMigration <Boolean>]
[-EndpointDlpGlobalSettings <PswsHashtable[]>]
[-EndpointDlpGlobalSettingsPsws <PswsHashtable[]>]
[-InformationBarrierMode <InformationBarrierMode>]
[-InformationBarrierPeopleSearchRestriction <InformationBarrierPeopleSearchRestriction>]
[-OnPremisesWorkload <Workload>]
[-ProcessingLimitExceededSeverity <RuleSeverity>]
[-PurviewLabelConsent <Boolean>]
[-ReservedForFutureUse <Boolean>]
[-RetentionForwardCrawl <Boolean>]
[-RuleErrorAction <PolicyRuleErrorAction>]
[-SenderAddressLocation <PolicySenderAddressLocation>]
[-SiteGroups <PswsHashtable[]>]
[-SiteGroupsPsws <PswsHashtable[]>]
[-WhatIf]
[<CommonParameters>]
Description
若要在安全 & 性合規性 PowerShell 中使用此 Cmdlet,您必須獲指派許可權。 如需詳細資訊,請參閱 Microsoft Purview 合規性入口網站中的權限。
範例
範例 1
{{ Add example code here }}
{{ 在這裡新增範例描述 }}
參數
-CaseHoldPolicyLimit
{{ 填入 CaseHoldPolicyLimit 描述 }}
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-ClassificationScheme
{{ 填滿分類架構描述 }}
Type: | ClassificationScheme |
Accepted values: | Default, V0_AggregatedOnly, V1_DetailedResults |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-ComplianceUrl
{{ 填入合規性Url 描述 }}
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-Confirm
Confirm 參數會指定要顯示或隱藏確認提示。 這個參數對 Cmdlet 的影響取決於 Cmdlet 是否需要確認才能繼續作業。
- 例如,具破壞性的 Cmdlet (例如 Remove-* Cmdlet) 內建暫停,可強制您在繼續之前確認命令。 對於這些 Cmdlet,您可以使用以下確切語法來略過確認提示:-Confirm:$false。
- 其他大部分的 Cmdlet (例如,New-* 和 Set-* Cmdlet) 沒有內建暫停。 在使用這些 Cmdlet 時,指定不含任何值的 Confirm 參數會引入強迫您認可命令後才繼續作業的暫停。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-DlpAppGroups
{{ 填入 DlpAppGroups 描述 }}
Type: | PswsHashtable[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-DlpAppGroupsPsws
{{ 填滿 DlpAppGroupsPsws 描述 }}
Type: | PswsHashtable[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-DlpNetworkShareGroups
{{ 填入 DlpNetworkShareGroups 描述 }}
Type: | PswsHashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-DlpPrinterGroups
{{ 填入 DlpPrinterGroups 描述 }}
Type: | PswsHashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-DlpRemovableMediaGroups
{{ Fill DlpRemovableMediaGroups Description }}
Type: | PswsHashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-DocumentIsUnsupportedSeverity
{{ Fill DocumentIsUnsupportedSeverity Description }}
Type: | RuleSeverity |
Accepted values: | Low, Medium, High, None, Informational, Information |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-EnableAdvancedRuleBuilder
{{ Fill EnableAdvancedRuleBuilder Description }}
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-EnableLabelCoauth
EnableLabelCoauth 參數會為整個組織啟用或停用 Office 傳統型應用程式中的共同撰寫支援。 有效值為:
- $true:已啟用 Office 傳統型應用程式的共同撰寫支援。 當檔以敏感度標籤加上標籤並加密時,多個使用者可以同時編輯這些檔。 未加密檔案的標籤資訊不會再儲存在自訂屬性中。 如果您使用讀取或寫入標記中繼資料至舊位置的任何應用程式、服務、腳本或工具,請勿啟用共同撰寫。
- $false:已停用 Office 傳統型應用程式中的共同撰寫支援。
在組織中的 Office 傳統型應用程式中停用共同撰寫支援會有下列結果:
- 對於支援新標籤中繼資料的應用程式和服務,現在當讀取或儲存標籤時,它們會還原為原始的中繼資料格式和位置。
- 啟用設定時所使用 Office 檔的新元資料格式和位置,將不會複製到原始格式和位置。 因此,未加密 Word、Excel 和 PowerPoint 檔案的此標籤資訊將會遺失。
- 共同撰寫和自動儲存不再適用于已加上標籤和加密的檔。
- 在 OneDrive 和 SharePoint 中,Office 檔案的敏感度標籤仍維持啟用。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-EnableSpoAipMigration
EnableSpoAipMigration 參數會針對 SharePoint 和 OneDrive 中支援的 Office 檔案啟用或停用內建標籤。 有效值為:
- $true:使用者可以在Office 網頁版中套用您的敏感度標籤。 使用者會在功能區上看到 [敏感度] 按鈕,以便套用標籤,並在狀態列上查看任何已套用的標籤名稱。
- $false:使用者無法在Office 網頁版中套用您的敏感度標籤。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-EndpointDlpGlobalSettings
EndpointDlpGlobalSettings 參數會指定全域端點。 此參數使用下列語法: @(@{"Setting"="<Setting>"; "Value"="<Value>}",@{"Setting"="<Setting>"; "Value"="<Value>"},...)
。
的 <Setting>
值是其中一個支援的值。
範例值:
@{"Setting"="PathExclusion"; "Value"="C:\Windows";}
@{"Setting"="PathExclusion"; "Value"="%AppData%\Mozilla";}
@{"Setting"="PathExclusion"; "Value"="C:\Users\*\Desktop";}
@{"Setting"="UnallowedApp"="Notepad ++;"Executable"="notepad++"}
@{"Setting"="UnallowedApp"="Executable"="cmd"}
@{"Setting"="UnallowedBrowser"="Chrome";"Executable"="chrome"}
@{"Setting"="CloudAppRestrictions"="Allow"}
@{"Setting"="CloudAppRestrictionList"="1.1.2.2"}
@{"Setting"="CloudAppRestrictionList"="subdomain.com"}
@{"Setting"="CloudAppRestrictionList"="another.differentdomain.edu"}
@{"Setting"="ShowEndpointJustificationDropdown"; "True";}
Type: | PswsHashtable[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-EndpointDlpGlobalSettingsPsws
{{ Fill EndpointDlpGlobalSettingsPsws Description }}
Type: | PswsHashtable[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-Identity
您不需要使用此參數。 組織中唯一的端點限制物件名為 Settings。
Type: | OrganizationIdParameter |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-InformationBarrierMode
{{ Fill InformationBarrierMode Description }}
Type: | InformationBarrierMode |
Accepted values: | Legacy, SingleSegment, MultiSegment |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-InformationBarrierPeopleSearchRestriction
{{ Fill InformationBarrierPeopleSearchRestriction Description }}
Type: | InformationBarrierPeopleSearchRestriction |
Accepted values: | Enabled, Disabled |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-OnPremisesWorkload
{{ Fill OnPremisesWorkload Description }}
Type: | Workload |
Accepted values: | None, Exchange, SharePoint, Intune, OneDriveForBusiness, PublicFolder, SharePointOnPremises, ExchangeOnPremises, AuditAlerting, Skype, ModernGroup, DynamicScope, Teams, UnifiedAuditAzure, EndpointDevices, ThirdPartyApps, OnPremisesScanner |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-ProcessingLimitExceededSeverity
{{ Fill ProcessingLimitExceededSeverity Description }}
Type: | RuleSeverity |
Accepted values: | Low, Medium, High, None, Informational, Information |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-PurviewLabelConsent
{{ 填滿 PurviewLabelConsent 描述 }}
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-ReservedForFutureUse
{{ Fill ReservedForFutureUse Description }}
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-RetentionForwardCrawl
{{ Fill RetentionForwardCrawl Description }}
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-RuleErrorAction
RuleErrorAction 參數會指定在評估規則期間發生錯誤時該怎麼做。 有效值為:
- 略過
- RetryThenBlock (這是預設值)
Type: | PolicyRuleErrorAction |
Accepted values: | Ignore, RetryThenBlock |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-SenderAddressLocation
SenderAddressLocation 參數會指定在檢查寄件者電子郵件地址的條件和例外狀況中尋找寄件者位址的位置。 有效值為:
- 標頭:僅檢查訊息標頭中的寄件者 (例如,[寄件者]、[寄件者] 或 [Reply-To] 欄位) 。 這是預設值。
- 信封:只檢查郵件信封中的寄件者 (SMTP 傳輸中使用的 MAIL FROM 值,此值通常會儲存在Return-Path欄位) 中。
- HeaderOrEnvelope:檢查郵件標頭和郵件信封中的寄件者。
Type: | PolicySenderAddressLocation |
Accepted values: | Header, Envelope, HeaderOrEnvelope |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-SiteGroups
{{ 填入 SiteGroups 描述 }}
Type: | PswsHashtable[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-SiteGroupsPsws
{{ 填入 SiteGroupsPsws 描述 }}
Type: | PswsHashtable[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-WhatIf
WhatIf 參數無法在安全 & 性合規性 PowerShell 中運作。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |