fr-FR

SPOTenant

S’applique à : SharePoint Online

La documentation Microsoft de ces stratégies n’existe qu’en anglais : les descriptions ci-dessous ne sont pas traduites.

Sets properties on the SharePoint Online organization.

You can use the Set-SPOTenant cmdlet to enable external services and to specify the versions in which site collections can be created. You can also use the Set-SPOSite cmdlet together with the Set-SPOTenant cmdlet to block access to a site in your organization and redirect traffic to another site.

You must be a SharePoint Online administrator to run the cmdlet.

Cmdlets disponibles

Paramètres

Nom Type Valeur par défaut Valeurs acceptées
AIBuilderModelScope SyntexFeatureScopeValue
AIBuilderModelSelectedSitesIncludesContentCenters Boolean
AIBuilderModelSelectedSitesList String[]
AIBuilderModelSelectedSitesListOperation SelectedSitesListOperations Overwrite
AddAppIdToList SwitchParameter
AllOrganizationSecurityGroupId System.Guid
AllowAnonymousMeetingParticipantsToAccessWhiteboards Microsoft.SharePoint.Client.SharingState
AllowClassicPublishingSiteCreation System.Boolean
AllowCommentsTextOnEmailEnabled System.Boolean
AllowDownloadingNonWebViewableFiles Boolean
AllowEditing System.Boolean
AllowEveryoneExceptExternalUsersClaimInPrivateSite System.Boolean
AllowFileArchive Boolean True
AllowFileArchiveOnNewSitesByDefault Boolean True
AllowGuestUserShareToUsersNotInSiteCollection System.Boolean
AllowOverrideForBlockUserInfoVisibility System.Boolean
AllowSelectSecurityGroupsInSPSitesList String[]
AllowSelectSGsInODBListInTenant String[]
AllowSensitivityLabelOnRecords System.Boolean
AllowSharingOutsideRestrictedAccessControlGroups System.Boolean
AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled System.Boolean
AnyoneLinkTrackUsers System.Boolean
AppAccessInformationBarriersAllowList System.Guid[]
AppBypassInformationBarriers System.Boolean
ApplyAppEnforcedRestrictionsToAdHocRecipients System.Boolean
AppOnlyBypassPeoplePickerPolicies System.Boolean
ArchiveRedirectUrl System.String
AuthContextResilienceMode Microsoft.SharePoint.Administration.SPResilienceModeType
AutofillColumnsScope Microsoft.Online.SharePoint.TenantAdministration.SyntexFeatureScopeValue
AutofillColumnsSelectedSitesList System.String[]
AutofillColumnsSelectedSitesListOperation Microsoft.Online.SharePoint.TenantAdministration.SelectedSitesListOperations
BccExternalSharingInvitations System.Boolean
BccExternalSharingInvitationsList System.String
BlockAppAccessWithAuthenticationContext System.Boolean
BlockDownloadFileTypeIds Microsoft.SharePoint.Client.Administration.SPBlockDownloadFileTypeId[]
BlockDownloadFileTypePolicy System.Boolean
BlockDownloadLinksFileType Microsoft.Online.SharePoint.TenantManagement.BlockDownloadLinksFileTypes
BlockSendLabelMismatchEmail System.Boolean
BlockUserInfoVisibility System.String
BlockUserInfoVisibilityInOneDrive Microsoft.Online.SharePoint.TenantAdministration.TenantBrowseUserInfoPolicyValue
BlockUserInfoVisibilityInSharePoint Microsoft.Online.SharePoint.TenantAdministration.TenantBrowseUserInfoPolicyValue
BusinessConnectivityServiceDisabled System.Boolean
CommentsOnFilesDisabled System.Boolean
CommentsOnListItemsDisabled System.Boolean
CommentsOnSitePagesDisabled System.Boolean
ConditionalAccessPolicy Microsoft.Online.SharePoint.TenantManagement.SPOConditionalAccessPolicyType
ConditionalAccessPolicyErrorHelpLink System.String
ContentSecurityPolicyEnforcement System.Boolean
ContentTypeSyncSiteTemplatesList System.String[]
CoreBlockGuestsAsSiteAdmin Microsoft.SharePoint.Client.SharingState
CoreDefaultLinkToExistingAccess System.Boolean
CoreDefaultShareLinkRole Microsoft.Online.SharePoint.TenantManagement.SharingRole
CoreDefaultShareLinkScope Microsoft.SharePoint.Client.Sharing.SharingScope
CoreLoopDefaultSharingLinkRole Microsoft.Online.SharePoint.TenantManagement.SharingRole
CoreLoopDefaultSharingLinkScope Microsoft.SharePoint.Client.Sharing.SharingScope
CoreAnyoneSharingLinkMaxExpirationInDays System.Int32
CoreAnyoneSharingLinkRecommendedExpirationInDays System.Int32
CoreOrganizationSharingLinkMaxExpirationInDays System.Int32
CoreOrganizationSharingLinkRecommendedExpirationInDays System.Int32
CoreRequestFilesLinkEnabled System.Boolean
CoreRequestFilesLinkExpirationInDays System.Int32
CoreSharingCapability Microsoft.Online.SharePoint.TenantManagement.SharingCapabilities
CustomizedExternalSharingServiceUrl System.String
DefaultContentCenterSite System.String
DefaultLanguageForSiteCreation System.String
DefaultLinkPermission Microsoft.Online.SharePoint.TenantManagement.SharingPermissionType
DefaultOneDriveInformationBarrierMode System.String
DefaultSharingLinkType Microsoft.Online.SharePoint.TenantManagement.SharingLinkType
DelayContentSecurityPolicyEnforcement Boolean
DelayDenyAddAndCustomizePagesEnforcement System.Boolean
DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites System.Boolean
DelegateRestrictedAccessControlManagement System.Boolean
DelegateRestrictedContentDiscoverabilityManagement System.Boolean
DenySelectSecurityGroupsInSPSitesList String[]
DenySelectSGsInODBListInTenant String[]
DisableAddShortcutsToOneDrive System.Boolean
DisableBackToClassic System.Boolean
DisableCustomAppAuthentication System.Boolean
DisabledAdaptiveCardExtensionIds System.Guid[]
DisableDocumentLibraryDefaultLabeling System.Boolean
DisabledWebPartIds System.Guid[]
DisableModernListTemplateIds System.Guid[]
DisableOutlookPSTVersionTrimming System.Boolean
DisablePersonalListCreation System.Boolean
DisableSharePointStoreAccess System.Boolean
DisableSpacesActivation System.Boolean
DisableSpfxTopBottomPlaceholdersInElevatedContent System.Boolean
DisableVivaConnectionsAnalytics System.Boolean
DisableWorkflow2010 System.Boolean
DisallowInfectedFileDownload System.Boolean
DisplayStartASiteOption System.Boolean
DocumentTranslationScope Microsoft.Online.SharePoint.TenantAdministration.SyntexFeatureScopeValue
DocumentTranslationSelectedSitesList System.String[]
DocumentTranslationSelectedSitesListOperation Microsoft.Online.SharePoint.TenantAdministration.SelectedSitesListOperations
DocumentUnderstandingModelScope Microsoft.Online.SharePoint.TenantAdministration.SyntexFeatureScopeValue
DocumentUnderstandingModelSelectedSitesList System.String[]
DocumentUnderstandingModelSelectedSitesListOperation Microsoft.Online.SharePoint.TenantAdministration.SelectedSitesListOperations
EmailAttestationReAuthDays System.Int32
EmailAttestationRequired System.Boolean
EnableAIPIntegration System.Boolean
EnableAgentWorkerSharingDisclaimer System.Boolean False
EnableAutoExpirationVersionTrim System.Boolean
EnableAutoNewsDigest System.Boolean
EnableNotificationsSubscriptions System.Boolean False
DisableTeamsMeetingRecordingDeletedNotification System.Boolean False
EnableAzureADB2BIntegration System.Boolean
EnableDiscoverableByOrganizationForVideos System.Boolean
EnableGuestSignInAcceleration System.Boolean
EnableMediaReactions System.Boolean
EnableMinimumVersionRequirement System.Boolean
EnableModernListTemplateIds System.Guid[]
EnablePromotedFileHandlers System.Boolean
EnableRestrictedAccessControl System.Boolean
EnableSensitivityLabelforPDF System.Boolean
EnableSensitivityLabelforOneNote System.Boolean
EnableSensitivityLabelforVideoFiles System.Boolean
EnableTenantRestrictionsInsights System.Boolean
EnableVersionExpirationSetting Boolean
EnforceContentSecurityPolicyConfiguration Boolean False
EnforceRequestDigest System.Boolean
ExcludedBlockDownloadGroupIds System.Guid[]
ExcludeSiteTemplate System.Management.Automation.SwitchParameter
ExemptNativeUsersFromTenantLevelRestricedAccessControl Boolean
ExpireVersionsAfterDays System.Int32
ExtendPermissionsToUnprotectedFiles System.Boolean
ExternalServicesEnabled System.Boolean
ExternalUserExpirationRequired System.Boolean
ExternalUserExpireInDays Int32
FileAnonymousLinkType Microsoft.SharePoint.Client.AnonymousLinkType
FilePickerExternalImageSearchEnabled System.Boolean
FilePreviewAllowedDomainList String String.Empty
FileTypesForVersionExpiration String[]
FolderAnonymousLinkType Microsoft.SharePoint.Client.AnonymousLinkType
HideSyncButtonOnTeamSite System.Boolean
IBImplicitGroupBased System.Boolean
IncludeAtAGlanceInShareEmails System.Boolean
InformationBarriersSuspension System.Boolean
IPAddressAllowList System.String
IPAddressEnforcement System.Boolean
IPAddressWACTokenLifetime System.Int32
IsCollabMeetingNotesFluidEnabled System.Boolean
IsDataAccessInCardDesignerEnabled System.Boolean
IsEnableAppAuthPopUpEnabled System.Boolean
IsFilePreviewDomainRestrictionEnabled System.Boolean False
IsFluidEnabled System.Boolean
IsLoopEnabled System.Boolean
IsSharePointAddInsBlocked System.Boolean
IsSharePointAddInsDisabled System.Boolean
IsWBFluidEnabled System.Boolean
KnowledgeAgentScope KnowledgeAgentFeatureScopeValue NoSites
KnowledgeAgentSelectedSitesList String[]
KnowledgeAgentSelectedSitesListOperation SelectedSitesListOperations Overwrite
LabelMismatchEmailHelpLink System.String
LegacyAuthProtocolsEnabled System.Boolean
LegacyBrowserAuthProtocolsEnabled System.Boolean
LimitedAccessFileType Microsoft.Online.SharePoint.TenantManagement.SPOLimitedAccessFileType
MajorVersionLimit System.Int32
MarkNewFilesSensitiveByDefault Microsoft.Online.SharePoint.TenantManagement.SensitiveByDefaultState
MassDeleteNotificationDisabled System.Boolean False
MassDeleteNotificationDisabledForODB System.Boolean False
MassDeleteNotificationDisabledForSPO System.Boolean False
MaxCompatibilityLevel System.Int32
MediaTranscription Microsoft.Online.SharePoint.TenantManagement.MediaTranscriptionPolicyType
MediaTranscriptionAutomaticFeatures Microsoft.Online.SharePoint.TenantManagement.MediaTranscriptionAutomaticFeaturesPolicyType
MinCompatibilityLevel System.Int32
NoAccessRedirectUrl System.String
NotificationsInOneDriveForBusinessEnabled System.Boolean
NotificationsInSharePointEnabled System.Boolean
NotifyOwnersWhenItemsReshared System.Boolean
ODBAccessRequests System.Boolean
ODBMembersCanShare Microsoft.SharePoint.Client.SharingState
OfficeClientADALDisabled System.Boolean
OneDriveBlockGuestsAsSiteAdmin Microsoft.SharePoint.Client.SharingState
OneDriveDefaultLinkToExistingAccess System.Boolean
OneDriveDefaultShareLinkRole Microsoft.Online.SharePoint.TenantManagement.SharingRole
OneDriveDefaultShareLinkScope Microsoft.SharePoint.Client.Sharing.SharingScope
OneDriveForGuestsEnabled System.Boolean
OneDriveLoopDefaultSharingLinkRole Microsoft.Online.SharePoint.TenantManagement.SharingRole
OneDriveLoopDefaultSharingLinkScope Microsoft.SharePoint.Client.Sharing.SharingScope
OneDriveAnyoneSharingLinkMaxExpirationInDays System.Int32
OneDriveAnyoneSharingLinkRecommendedExpirationInDays System.Int32
OneDriveOrganizationSharingLinkMaxExpirationInDays System.Int32
OneDriveOrganizationSharingLinkRecommendedExpirationInDays System.Int32
OneDriveRequestFilesLinkEnabled System.Boolean
OneDriveRequestFilesLinkExpirationInDays System.Int32
OneDriveSharingCapability Microsoft.Online.SharePoint.TenantManagement.SharingCapabilities
OneDriveStorageQuota System.Int64
OpticalCharacterRecognitionScope SyntexFeatureScopeValue
OpticalCharacterRecognitionSelectedSitesList String[]
OpticalCharacterRecognitionSelectedSitesListOperation SelectedSitesListOperations Overwrite
OrphanedPersonalSitesRetentionPeriod Microsoft.Online.SharePoint.TenantAdministration.SyntexFeatureScopeValue
OwnerAnonymousNotification System.String[]
PermissiveBrowserFileHandlingOverride Microsoft.Online.SharePoint.TenantAdministration.SelectedSitesListOperations
PrebuiltModelScope SyntexFeatureScopeValue
PrebuiltModelSelectedSitesList String[]
PrebuiltModelSelectedSitesListOperation SelectedSitesListOperations Overwrite
PreventExternalUsersFromResharing System.Int32
ProvisionSharedWithEveryoneFolder System.Boolean
PublicCdnAllowedFileTypes System.Boolean
PublicCdnEnabled Microsoft.Online.SharePoint.TenantAdministration.SyntexFeatureScopeValue
RecycleBinRetentionPeriod Int32
ReduceTempTokenLifetimeEnabled Boolean False
ReduceTempTokenLifetimeValue Int32 15
RemoveAppIdFromList SwitchParameter
RemoveVersionExpirationFileTypeOverride String[]
RequireAcceptingAccountMatchInvitedAccount System.Boolean
RequireAnonymousLinksExpireInDays System.Int32
RestrictedAccessControlForOneDriveErrorHelpLink System.String
RestrictedAccessControlforSitesErrorHelpLink System.String
RestrictAccessControlForAgenticUser System.Boolean
RestrictExternalSharing Guid[]
RestrictExternalSharingForAgents Boolean
RestrictResourceAccountAccess Boolean False
ResyncContentSecurityPolicyConfigurationEntries Boolean False
ReSyncTenantPrivacyProfile System.Boolean
SearchResolveExactEmailOrUPN System.Boolean
SelfServiceSiteCreationDisabled Boolean False
SensitivityLabel String
SharingAllowedDomainList System.String
SharingBlockedDomainList System.Boolean
SharingCapability Microsoft.Online.SharePoint.TenantManagement.SharingCapabilities
SharingDomainRestrictionMode Microsoft.Online.SharePoint.TenantManagement.SharingDomainRestrictionModes
ShowAllUsersClaim System.Boolean
ShowEveryoneClaim System.Boolean
ShowEveryoneExceptExternalUsersClaim System.Boolean
ShowOpenInDesktopOptionForSyncedFiles System.Boolean
ShowPeoplePickerGroupSuggestionsForIB System.Boolean
ShowPeoplePickerSuggestionsForGuestUsers System.Boolean
SignInAccelerationDomain System.String
SiteOwnersCanAccessMissingContent System.Boolean
SiteOwnerManageLegacyServicePrincipalEnabled System.Boolean
Sites Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind[]
SmartWikiEntryScope SmartWikiEntryScopeValue NoSites
SmartWikiEntrySelectedSitesList String[]
SmartWikiEntrySelectedSitesListOperation SelectedSitesListOperations Overwrite
SocialBarOnSitePagesDisabled System.Boolean
SpecialCharactersStateInFileFolderNames Microsoft.Online.SharePoint.TenantManagement.SpecialCharactersState
StartASiteFormUrl System.String
StopAlerts Boolean
StopNew2010Workflows System.Boolean
StopNew2013Workflows System.Boolean
StreamLaunchConfig System.Int32
SyncAadB2BManagementPolicy System.Boolean
SyncPrivacyProfileProperties System.Boolean
TlsTokenBindingPolicyValue Microsoft.Online.SharePoint.TenantManagement.SPOTlsTokenBindingPolicyValue
UseFindPeopleInPeoplePicker System.Boolean
UsePersistentCookiesForExplorerView System.Boolean
ViewersCanCommentOnMediaDisabled System.Boolean
ViewInFileExplorerEnabled System.Boolean
WhoCanShareAnonymousAllowList System.Guid[]
WhoCanShareAuthenticatedGuestAllowList System.Guid[]
Workflows2013Enabled System.Boolean

Exemples

EXAMPLE 1

Set-SPOSite -Identity https://contoso.sharepoint.com/sites/team1 -LockState NoAccess
Set-SPOTenant -NoAccessRedirectUrl 'https://www.contoso.com'

This example blocks access to https://contoso.sharepoint.com/sites/team1 and redirects traffic to https://www.contoso.com.

EXAMPLE 2

Set-SPOTenant -ShowEveryoneExceptExternalUsersClaim $false

This example hides the "Everyone Except External Users" claim in People Picker.

EXAMPLE 3

Set-SPOTenant -ShowAllUsersClaim $false

This example hides the "All Users" claim group in People Picker.

EXAMPLE 4

Set-SPOTenant -UsePersistentCookiesForExplorerView $true

This example enables the use of special persisted cookie for Open with Explorer.

EXAMPLE 5

Set-SPOTenant -LegacyAuthProtocolsEnabled $True

This example enables legacy authentication protocols on the tenant. This can help to enable login in situations where the admin users get an error like "Cannot contact web site 'https://contoso-admin.sharepoint.com/' or the web site does not support SharePoint Online credentials. The response status code is 'Unauthorized'.", and the underlying error is "Access denied. Before opening files in this location, you must first browse to the web site and select the option to login automatically."

EXAMPLE 6

Set-SPOTenant -ContentTypeSyncSiteTemplatesList MySites

This example enables Content Type Hub to push content types to all OneDrive for Business sites. There is no change in Content Type Publishing behavior for other sites.

EXAMPLE 7

Set-SPOTenant -ContentTypeSyncSiteTemplatesList MySites -ExcludeSiteTemplate

This example stops publishing content types to OneDrive for Business sites.

EXAMPLE 8

Set-SPOTenant -SearchResolveExactEmailOrUPN $true

This example disables starts with for all users/partial name search functionality for all SharePoint users, except SharePoint Admins.

EXAMPLE 9

Set-SPOTenant -UseFindPeopleInPeoplePicker $true

This example enables tenant admins to enable ODB and SPO to respect Exchange supports Address Book Policy (ABP) policies in the people picker.

EXAMPLE 10

Set-SPOTenant -ShowPeoplePickerSuggestionsForGuestUsers $true

This example enables the option to search for existing guest users at Tenant Level.

EXAMPLE 11

Set-SPOTenant -EnableAutoExpirationVersionTrim $true

This example sets automatic version history limits on all new document libraries at tenant level.

EXAMPLE 12

Set-SPOTenant -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -ExpireVersionsAfterDays 30

This example sets manual version history limits on all new document libraries at tenant level by limiting the number of major versions and the time (in days) versions are kept.

EXAMPLE 13

Set-SPOTenant -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -ExpireVersionsAfterDays 0

This example sets manual version history limits on all new document libraries at tenant level by limiting the number of major versions with no time limits.

EXAMPLE 14

Set-SPOTenant -SharingDomainRestrictionMode "AllowList" -SharingAllowedDomainList "contoso.com fabrikam.com"

This example enables users to share with external collaborators from those domains only.

EXAMPLE 15

Set-SPOTenant -SharingDomainRestrictionMode "BlockList" -SharingBlockedDomainList "contoso.com"

This example enables users to share with all external collaborators except for those on the BlockedDomainList.

EXAMPLE 16

Set-SPOTenant -EnableVersionExpirationSetting $true

The EnableVersionExpirationSetting parameter is no longer active, this feature is now automatically enabled for each tenant. Setting EnableVersionExpirationSetting to false would not disable the feature. Learn more about Version History Settings

EXAMPLE 17

Set-SPOTenant -PrebuiltModelScope SelectedSites -PrebuiltModelSelectedSitesList "https://contoso.sharepoint.com/sites/site1","https://contoso.sharepoint.com/sites/site2" -PrebuiltModelSelectedSitesListOperation Append

This example sets the scope of the prebuilt model and prebuilt document processing premium feature to SelectedSites, which limits the feature to only sites included in the selected sites list. This example also appends two sites to the feature's selected sites list.

Use of these parameters require the tenant to either have the required license or pay-as-you-go billing set up. For more information, visit Licensing for Microsoft Syntex.

EXAMPLE 18

Set-SPOTenant -DefaultContentCenterSite "https://contoso.sharepoint.com/sites/contentcenter"

This example sets the tenant's default content center. It can only be used if the tenant does not already have a designated default content center. To learn more about content centers, visit Create a content center in Microsoft Syntex.

Use of this parameter requires the tenant to either have the required license or pay-as-you-go billing set up. For more information, visit Licensing for Microsoft Syntex.

EXAMPLE 19

$list = (Get-SPOTenant | Select-Object WhoCanShareAnonymousAllowList).WhoCanShareAnonymousAllowList
Set-SPOTenant –WhoCanShareAnonymousAllowList ($list + <new GUID>)

This example appends a security group to the WhoCanShareAnonymousAllowList. Similar code works for the WhoCanShareAuthenticatedGuestAllowList.

EXAMPLE 20

Set-SPOTenant –WhoCanShareAnonymousAllowList @()

This example empties the WhoCanShareAnonymousAllowList. Similar code works for the WhoCanShareAuthenticatedGuestAllowList.

EXAMPLE 21

Set-SPOTenant -DisabledAdaptiveCardExtensionIds 0d2d0fd0-9489-47ef-acfb-90edca009cba

This example disables the Power Apps Adaptive Card Extension.

EXAMPLE 22

Set-SPOTenant -EnableAutoExpirationVersionTrim $true -FileTypesForVersionExpiration @("Video", "Audio")

This example sets automatic version history limit override for video and audio file types on all new document libraries at tenant level.

EXAMPLE 23

Set-SPOTenant -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -ExpireVersionsAfterDays 30 -FileTypesForVersionExpiration @("Video", "Audio")

This example sets manual version history limit override for video and audio file types on all new document libraries at tenant level by limiting the number of major versions and the time (in days) versions are kept.

EXAMPLE 24

Set-SPOTenant -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -ExpireVersionsAfterDays 0 -FileTypesForVersionExpiration @("Video", "Audio")

This example sets manual version history limit override for video and audio file types on all new document libraries at tenant level by limiting the number of major versions with no time limits.

EXAMPLE 25

Set-SPOTenant -RemoveVersionExpirationFileTypeOverride @("Video", "Audio")

This example removes any specific version history limit override set for video and audio file types on all new document libraries at tenant level.

EXAMPLE 26

Set-SPOTenant -IsFilePreviewDomainRestrictionEnabled $true -FilePreviewAllowedDomainList "contoso.com,fabrikam.com"

This example restricts file preview to the specified domains. When domain restriction is enabled, only files embedded from the listed domains can be previewed, in addition to predefined trusted Microsoft domains (for example, teams.microsoft.com).

EXAMPLE 27

Set-SPOTenant -IsFilePreviewDomainRestrictionEnabled $false

This example disables the file preview domain restriction. The previously configured allow list is retained but ignored, so the file preview viewer can load content from any domain.

EXAMPLE 28

Set-SPOTenant -DefaultLanguageForSiteCreation "de-DE"

This example sets the default language for new OneDrive sites to German (Germany). New OneDrive sites created after you run this command use this language instead of the language of the organization's OneDrive host site. To clear the setting and return to the default behavior, pass an empty string: Set-SPOTenant -DefaultLanguageForSiteCreation "".

EXAMPLE 29

Set-SPOTenant -SmartWikiEntryScope AllSites

This example makes the Smart Wiki library entry point available on all sites in the organization.

EXAMPLE 30

Set-SPOTenant -SmartWikiEntryScope IncludeSelectedSites -SmartWikiEntrySelectedSitesList "https://contoso.sharepoint.com/sites/marketing","https://contoso.sharepoint.com/sites/sales"

This example makes the Smart Wiki library entry point available only on the two specified sites. The specified sites replace any previously selected sites.

EXAMPLE 31

Set-SPOTenant -SmartWikiEntrySelectedSitesList "https://contoso.sharepoint.com/sites/hr" -SmartWikiEntrySelectedSitesListOperation Append
Get-SPOTenant | Select-Object SmartWikiEntryScope, SmartWikiEntrySelectedSitesList

This example adds a site to the current selected sites list for the Smart Wiki library entry point without changing the scope. It then displays the current scope and the selected sites.

EXAMPLE 32

Set-SPOTenant -RestrictAccessControlForAgenticUser $true
Get-SPOTenant | Select-Object RestrictAccessControlForAgenticUser

This example restricts Agent Users from accessing all sites in the organization and then returns the configured value. The policy is enforced at runtime and doesn't remove existing permissions.

Documentation Microsoft Learn