Страница:
SCRetentionCompliancePolicy
Страницы
AADApplication
AADConditionalAccessPolicy
AADGroup
AADGroupLifecyclePolicy
AADGroupsNamingPolicy
AADGroupsSettings
AADMSGroup
AADMSGroupLifecyclePolicy
AADNamedLocationPolicy
AADPolicy
AADRoleDefinition
AADServicePrincipal
AADTenantDetails
AADTokenLifetimePolicy
Assessing
Automating
Breaking Changes Policy
Contribute to Microsoft365dsc.com
Develop a New Resource
EXOAcceptedDomain
EXOActiveSyncDeviceAccessRule
EXOAddressBookPolicy
EXOAddressList
EXOAntiPhishPolicy
EXOAntiPhishRule
EXOApplicationAccessPolicy
EXOAtpPolicyForO365
EXOAvailabilityAddressSpace
EXOAvailabilityConfig
EXOCASMailboxPlan
EXOClientAccessRule
EXODkimSigningConfig
EXOEmailAddressPolicy
EXOGlobalAddressList
EXOHostedConnectionFilterPolicy
EXOHostedContentFilterPolicy
EXOHostedContentFilterRule
EXOHostedOutboundSpamFilterPolicy
EXOHostedOutboundSpamFilterRule
EXOInboundConnector
EXOIntraOrganizationConnector
EXOJournalRule
EXOMailTips
EXOMailboxSettings
EXOMalwareFilterPolicy
EXOMalwareFilterRule
EXOManagementRole
EXOMobileDeviceMailboxPolicy
EXOOfflineAddressBook
EXOOnPremisesOrganization
EXOOrganizationConfig
EXOOrganizationRelationship
EXOOutboundConnector
EXOOwaMailboxPolicy
EXOPartnerApplication
EXOPolicyTipConfig
EXORemoteDomain
EXORoleAssignmentPolicy
EXOSafeAttachmentPolicy
EXOSafeAttachmentRule
EXOSafeLinksPolicy
EXOSafeLinksRule
EXOSharedMailbox
EXOSharingPolicy
EXOTransportRule
Exporting
Getting Started
Home
How to Create a M365DSC Blueprint
IntuneAppConfigurationPolicy
IntuneAppProtectionPolicyiOS
IntuneDeviceCategory
IntuneDeviceCompliancePolicyAndroid
IntuneDeviceCompliancePolicyAndroidWorkProfile
IntuneDeviceCompliancePolicyMacOS
IntuneDeviceCompliancePolicyWindows10
IntuneDeviceCompliancePolicyiOs
IntuneDeviceConfigurationPolicyAndroidWorkProfile
IntuneDeviceConfigurationPolicyWindows
IntuneDeviceConfigurationPolicyWindows10
IntuneDeviceConfigurationPolicyiOS
IntuneDeviceEnrollmentLimitRestriction
IntuneDeviceEnrollmentPlatformRestriction
Known Issues
Monitoring
O365AdminAuditLogConfig
O365Group
O365OrgCustomizationSetting
O365User
ODSP Permissions
ODSettings
PPPowerAppsEnvironment
PPTenantSettings
Permissions
PlannerBucket
PlannerPlan
PlannerTask
Reporting
Resources List
SCAuditConfigurationPolicy
SCCaseHoldPolicy
SCCaseHoldRule
SCComplianceCase
SCComplianceSearch
SCComplianceSearchAction
SCComplianceTag
SCDLPCompliancePolicy
SCDLPComplianceRule
SCDeviceConditionalAccessPolicy
SCDeviceConfigurationPolicy
SCFilePlanPropertyAuthority
SCFilePlanPropertyCategory
SCFilePlanPropertyCitation
SCFilePlanPropertyDepartment
SCFilePlanPropertyReferenceId
SCFilePlanPropertySubCategory
SCLabelPolicy
SCRetentionCompliancePolicy
SCRetentionComplianceRule
SCRetentionEventType
SCSensitivityLabel
SCSupervisoryReviewPolicy
SCSupervisoryReviewRule
SPOAccessControlSettings
SPOApp
SPOBrowserIdleSignout
SPOHomeSite
SPOHubSite
SPOOrgAssetsLibrary
SPOPropertyBag
SPOSearchManagedProperty
SPOSearchResultSource
SPOSharingSettings
SPOSite
SPOSiteAuditSettings
SPOSiteDesign
SPOSiteDesignRights
SPOSiteGroup
SPOSiteScript
SPOStorageEntity
SPOTenantCDNPolicy
SPOTenantCdnEnabled
SPOTenantSettings
SPOTheme
SPOUserProfileProperty
Setting up your Environment to Contribute to the Project
TeamsCallingPolicy
TeamsChannel
TeamsChannelTab
TeamsChannelsPolicy
TeamsClientConfiguration
TeamsEmergencyCallRoutingPolicy
TeamsEmergencyCallingPolicy
TeamsGuestCallingConfiguration
TeamsGuestMeetingConfiguration
TeamsGuestMessagingConfiguration
TeamsMeetingBroadcastConfiguration
TeamsMeetingBroadcastPolicy
TeamsMeetingConfiguration
TeamsMeetingPolicy
TeamsMessagingPolicy
TeamsPstnUsage
TeamsTeam
TeamsTenantDialPlan
TeamsUpgradeConfiguration
TeamsUpgradePolicy
TeamsUser
TeamsVoiceRoute
TeamsVoiceRoutingPolicy
Troubleshooting
What is Microsoft365DSC
7
SCRetentionCompliancePolicy
Nik Charlebois редактировал(а) эту страницу 2021-10-06 06:17:59 -04:00
# SCRetentionCompliancePolicy
Parameters
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name | Key | String | The Name parameter specifies the unique name of the retention policy. | |
Ensure | Write | String | Specify if this policy should exist or not. | Present, Absent |
Comment | Write | String | The Comment parameter specifies an optional comment. | |
DynamicScopeLocation | Write | StringArray[] | Location of the dynamic scope for this policy. | |
Enabled | Write | Boolean | Determines if the policy is enabled or not. | |
ExchangeLocation | Write | StringArray[] | The ExchangeLocation parameter specifies the mailboxes to include. | |
ExchangeLocationException | Write | StringArray[] | This parameter specifies the mailboxes to remove from the list of excluded mailboxes when you use the value All for the ExchangeLocation parameter | |
ModernGroupLocation | Write | StringArray[] | The ModernGroupLocation parameter specifies the Office 365 groups to include in the policy. | |
ModernGroupLocationException | Write | StringArray[] | The ModernGroupLocationException parameter specifies the Office 365 groups to exclude when you're using the value All for the ModernGroupLocation parameter. | |
OneDriveLocation | Write | StringArray[] | The OneDriveLocation parameter specifies the OneDrive for Business sites to include. You identify the site by its URL value, or you can use the value All to include all sites. | |
OneDriveLocationException | Write | StringArray[] | This parameter specifies the OneDrive for Business sites to exclude when you use the value All for the OneDriveLocation parameter. You identify the site by its URL value. | |
PublicFolderLocation | Write | StringArray[] | The PublicFolderLocation parameter specifies that you want to include all public folders in the retention policy. You use the value All for this parameter. | |
RestrictiveRetention | Write | Boolean | The RestrictiveRetention parameter specifies whether Preservation Lock is enabled for the policy. | |
SharePointLocation | Write | StringArray[] | The SharePointLocation parameter specifies the SharePoint Online sites to include. You identify the site by its URL value, or you can use the value All to include all sites. | |
SharePointLocationException | Write | StringArray[] | This parameter specifies the SharePoint Online sites to exclude when you use the value All for the SharePointLocation parameter. You identify the site by its URL value. | |
SkypeLocation | Write | StringArray[] | The SkypeLocation parameter specifies the Skype for Business Online users to include in the policy. | |
SkypeLocationException | Write | StringArray[] | This parameter is reserved for internal Microsoft use. | |
TeamsChannelLocation | Write | StringArray[] | The TeamsChannelLocation parameter specifies the Teams Channel to include in the policy. | |
TeamsChannelLocationException | Write | StringArray[] | This parameter specifies the SharePoint Online sites to exclude when you use the value All for the TeamsChannelLocation parameter. You identify the site by its URL value. | |
TeamsChatLocation | Write | StringArray[] | The TeamsChatLocation parameter specifies the Teams Chat to include in the policy. | |
TeamsChatLocationException | Write | StringArray[] | This parameter specifies the SharePoint Online sites to exclude when you use the value All for the TeamsChatLocation parameter. You identify the site by its URL value. | |
Credential | Required | PSCredential | Credentials of the Exchange Global Admin |
SCRetentionCompliancePolicy
Description
This resource configures a Retention Compliance Policy in Security and Compliance.
Examples
Example 1
This example is used to test new resources and showcase the usage of new resources being worked on. It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$credsGlobalAdmin
)
Import-DscResource -ModuleName Microsoft365DSC
node localhost
{
SCRetentionCompliancePolicy Policy
{
Name = "MyPolicy"
Comment = "Test Policy"
SharePointLocation = "https://contoso.sharepoint.com/sites/demo"
Ensure = "Present"
Credential = $credsGlobalAdmin
}
}
}