Set-SPO365LinkSettings

Set SharePoint O365 Link Settings for Hybrid Configuration.

Syntax

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

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.

Type:SPAssignmentCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Audiences

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

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-HybridAppLauncherEnabled

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

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-MySiteHostUrl

Sets the root URL for the redirected pages.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-OnedriveDefaultToCloudEnabled

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

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition