Edit

Share via


Set-SPO365LinkSettings

Set SharePoint O365 Link Settings for Hybrid Configuration.

Syntax

Default (Default)

Set-SPO365LinkSettings
    -MySiteHostUrl <String>
    [-Audiences <String[]>]
    [-RedirectSites <Boolean>]
    [-HybridAppLauncherEnabled <Boolean>]
    [-OnedriveDefaultToCloudEnabled <Boolean>]
    [-AssignmentCollection <SPAssignmentCollection>]
    [<CommonParameters>]

Description

Use the Set-SPO365LinkSettings cmdlet to configure some of Hybrid features (Hybrid site redirection, OneDrive redirection, ODB default to Cloud) without running Hybrid Configuration Wizard.

To run this cmdlet requires farm administrator permission and that the user account has full control access to the User Profile Application service.

Examples

EXAMPLE 1

 Set-SPO365LinkSettings -MySiteHostUrl https://contoso-my.sharepoint.com/ -RedirectSites $true

This example sets the mysite host URL to contoso-my.sharepoint.com

Parameters

-AssignmentCollection

Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Parameter properties

Type:SPAssignmentCollection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Audiences

Applicable: SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

Sets the user(s) for whom redirection is active.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-HybridAppLauncherEnabled

Applicable: SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

Sets a flag that indicates whether app launcher get data from SharePoint Online (SPO) is allowed

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-MySiteHostUrl

Applicable: SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

Sets the root URL for the redirected pages.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-OnedriveDefaultToCloudEnabled

Applicable: SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

Sets a flag that indicates whether Local OneDrive is redirected to SPO OneDrive.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.