Set-SPO365LinkSettings

为混合配置设置 SharePoint O365 链接设置。

语法

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

说明

使用 Set-SPO365LinkSettings cmdlet 配置混合站点重定向、OneDrive 重定向、ODB 默认为云) 而不运行混合配置向导 (某些混合功能。

若要运行此 cmdlet,需要服务器场管理员权限,并且用户帐户具有对用户配置文件应用程序服务的完全控制访问权限。

示例

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

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

本示例将 mysite 主机 URL 设置为 contoso-my.sharepoint.com

参数

-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

-工作分配

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

-访问群体

设置重定向活动的用户 () 。

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