Set-SPO365LinkSettings

設定混合式組態的 SharePoint O365 連結設定。

Syntax

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

Description

使用 Set-SPO365LinkSettings Cmdlet 來設定一些混合式功能, (混合式網站重新導向、OneDrive 重新導向、ODB 預設為雲端) ,而不需要執行混合式設定精靈。

若要執行此 Cmdlet,需要伺服器陣列管理員許可權,而且使用者帳戶具有使用者設定檔應用程式服務的完整控制許可權。

範例

------------EXAMPLE 1-----------

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

本範例會將 mysite 主機 URL 設定為 contoso-my.sharepoint.com

參數

-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
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Audiences

設定重新導向作用中的使用者 () 。

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

-HybridAppLauncherEnabled

設定旗標,指出應用程式啟動器是否允許從 SharePoint Online 取得資料 (SPO)

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

-MySiteHostUrl

設定重新導向頁面的根 URL。

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

-OnedriveDefaultToCloudEnabled

設定旗標,指出本機 Onedrive 是否重新導向至 SPO OneDrive。

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