Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ author: samkabue
ms.author: speedta
ms.reviewer: Mengke-GH
description: 'A PowerShell cmdlet used in SharePoint Online to configure organization-wide tenant settings.'
ms.date: 08/03/2026
ms.date: 09/23/2026
---

# Set-SPOTenant
Expand Down Expand Up @@ -141,6 +141,8 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
[-AutofillColumnsSelectedSitesListOperation <SelectedSitesListOperations>]
[-KnowledgeAgentScope <KnowledgeAgentFeatureScopeValue>] [-KnowledgeAgentSelectedSitesList <String[]>]
[-KnowledgeAgentSelectedSitesListOperation <SelectedSitesListOperations>]
[-SmartWikiEntryScope <SmartWikiEntryScopeValue>] [-SmartWikiEntrySelectedSitesList <String[]>]
[-SmartWikiEntrySelectedSitesListOperation <SelectedSitesListOperations>]
[-OpticalCharacterRecognitionScope <SyntexFeatureScopeValue>]
[-OpticalCharacterRecognitionSelectedSitesList <String[]>]
[-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>]
Expand Down Expand Up @@ -277,6 +279,8 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
[-AutofillColumnsSelectedSitesListOperation <SelectedSitesListOperations>]
[-KnowledgeAgentScope <KnowledgeAgentFeatureScopeValue>] [-KnowledgeAgentSelectedSitesList <String[]>]
[-KnowledgeAgentSelectedSitesListOperation <SelectedSitesListOperations>]
[-SmartWikiEntryScope <SmartWikiEntryScopeValue>] [-SmartWikiEntrySelectedSitesList <String[]>]
[-SmartWikiEntrySelectedSitesListOperation <SelectedSitesListOperations>]
[-OpticalCharacterRecognitionScope <SyntexFeatureScopeValue>]
[-OpticalCharacterRecognitionSelectedSitesList <String[]>]
[-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>]
Expand Down Expand Up @@ -414,6 +418,8 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
[-AutofillColumnsSelectedSitesListOperation <SelectedSitesListOperations>]
[-KnowledgeAgentScope <KnowledgeAgentFeatureScopeValue>] [-KnowledgeAgentSelectedSitesList <String[]>]
[-KnowledgeAgentSelectedSitesListOperation <SelectedSitesListOperations>]
[-SmartWikiEntryScope <SmartWikiEntryScopeValue>] [-SmartWikiEntrySelectedSitesList <String[]>]
[-SmartWikiEntrySelectedSitesListOperation <SelectedSitesListOperations>]
[-OpticalCharacterRecognitionScope <SyntexFeatureScopeValue>]
[-OpticalCharacterRecognitionSelectedSitesList <String[]>]
[-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>]
Expand Down Expand Up @@ -549,6 +555,8 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
[-AutofillColumnsSelectedSitesListOperation <SelectedSitesListOperations>]
[-KnowledgeAgentScope <KnowledgeAgentFeatureScopeValue>] [-KnowledgeAgentSelectedSitesList <String[]>]
[-KnowledgeAgentSelectedSitesListOperation <SelectedSitesListOperations>]
[-SmartWikiEntryScope <SmartWikiEntryScopeValue>] [-SmartWikiEntrySelectedSitesList <String[]>]
[-SmartWikiEntrySelectedSitesListOperation <SelectedSitesListOperations>]
[-OpticalCharacterRecognitionScope <SyntexFeatureScopeValue>]
[-OpticalCharacterRecognitionSelectedSitesList <String[]>]
[-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>]
Expand Down Expand Up @@ -684,6 +692,8 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
[-AutofillColumnsSelectedSitesListOperation <SelectedSitesListOperations>]
[-KnowledgeAgentScope <KnowledgeAgentFeatureScopeValue>] [-KnowledgeAgentSelectedSitesList <String[]>]
[-KnowledgeAgentSelectedSitesListOperation <SelectedSitesListOperations>]
[-SmartWikiEntryScope <SmartWikiEntryScopeValue>] [-SmartWikiEntrySelectedSitesList <String[]>]
[-SmartWikiEntrySelectedSitesListOperation <SelectedSitesListOperations>]
[-OpticalCharacterRecognitionScope <SyntexFeatureScopeValue>]
[-OpticalCharacterRecognitionSelectedSitesList <String[]>]
[-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>]
Expand Down Expand Up @@ -939,6 +949,31 @@ 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

```powershell
Set-SPOTenant -SmartWikiEntryScope AllSites
```

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

### EXAMPLE 30

```powershell
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

```powershell
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.

## PARAMETERS

### -AIBuilderModelScope
Expand Down Expand Up @@ -5880,6 +5915,93 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -SmartWikiEntryScope

> Applicable: SharePoint Online

Specifies the sites where the Smart Wiki library entry point is available to users.

The valid values are:

- `NoSites`: This setting doesn't make the entry point available on any site. This is the default value.
- `AllSites`: The entry point is available on all sites.
- `IncludeSelectedSites`: The entry point is available only on the sites in `SmartWikiEntrySelectedSitesList`.
- `ExcludeSelectedSites`: The entry point is available on all sites except the sites in `SmartWikiEntrySelectedSitesList`.

When you specify this parameter, the current selected sites list is cleared. To set a new list, specify `SmartWikiEntrySelectedSitesList` in the same command. To change the list without changing the scope, omit this parameter.

It might take some time for changes to take effect, and users might need to refresh the page to see them.

> [!NOTE]
> This setting only controls where the Smart Wiki library entry point is available. It doesn't activate SharePoint features or change access to existing Smart Wiki libraries. `NoSites` doesn't turn off the entry point on sites where it's otherwise available.

```yaml
Type: SmartWikiEntryScopeValue
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: NoSites
Accept pipeline input: False
Accept wildcard characters: False
```

### -SmartWikiEntrySelectedSitesList

> Applicable: SharePoint Online

Specifies the site URLs for the Smart Wiki library entry point setting. When `SmartWikiEntryScope` is `IncludeSelectedSites`, the entry point is available only on these sites. When `SmartWikiEntryScope` is `ExcludeSelectedSites`, the entry point is available on all sites except these sites.

You can use this parameter only when `SmartWikiEntryScope` is `IncludeSelectedSites` or `ExcludeSelectedSites`, either in the same command or as the current setting.

By default, the list that you specify replaces the current list. To add sites to or remove sites from the current list, use the `SmartWikiEntrySelectedSitesListOperation` parameter.

Specify the URL of each site collection, for example `https://contoso.sharepoint.com/sites/marketing`. The setting applies to the entire site collection, including its subsites. URLs that don't match a site collection in your organization are ignored, and the cmdlet displays a warning that lists them.

The list can contain up to 100 sites. To clear the list, specify an empty array (`@()`) with the default `Overwrite` operation. When the list is empty, `IncludeSelectedSites` doesn't make the entry point available on any site, and `ExcludeSelectedSites` makes it available on all sites.

If a selected site is deleted, it no longer appears in the `Get-SPOTenant` output, but it still counts toward the 100-site limit until you overwrite the list.

```yaml
Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SmartWikiEntrySelectedSitesListOperation

> Applicable: SharePoint Online

Specifies how the site URLs in `SmartWikiEntrySelectedSitesList` are applied to the current selected sites list.

The valid values are:

- `Overwrite`: Replaces the current list with the specified sites. This is the default value.
- `Append`: Adds the specified sites to the current list.
- `Remove`: Removes the specified sites from the current list.

> [!NOTE]
> You must specify `SmartWikiEntrySelectedSitesList` when you use this parameter. Otherwise, the command returns an error.

```yaml
Type: SelectedSitesListOperations
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: Overwrite
Accept pipeline input: False
Accept wildcard characters: False
```

### -SocialBarOnSitePagesDisabled

> Applicable: SharePoint Online
Expand Down
Loading