Set-SPOHubSite

设置名称、徽标和说明等中心网站信息。

语法

Default (默认值)

Set-SPOHubSite
    [-Identity] <SpoHubSitePipeBind>
    [-Title <String>]
    [-LogoUrl <String>]
    [-Description <String>]
    [-SiteDesignId <Guid>]
    [-RequiresJoinApproval <Boolean>]
    [-HideNameInNavigation <Boolean>]
    [-EnablePermissionsSync <Boolean>]
    [<CommonParameters>]

说明

使用此 cmdlet 设置名称、徽标和说明等属性。 这些属性在 SharePoint 用户界面中为中心显示。

如果中心站点不存在,此 cmdlet 将返回“找不到文件”错误。

示例

示例 1

Set-SPOHubSite https://contoso.sharepoint.com/sites/Marketing `
-Title "Marketing Hub" `
-LogoUrl https://contoso.sharepoint.com/sites/Marketing/SiteAssets/hublogo.png `
-Description "Hub for the Marketing division"

此示例更新 SharePoint 用户界面中显示的中心的名称。 它还更新中心导航中使用的徽标,并为中心指定可选说明。

参数

-Description

适用:SharePoint Online

中心网站说明。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-EnablePermissionsSync

适用:SharePoint Online

是否启用到关联网站的权限同步。

参数属性

类型:System.Boolean
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-HideNameInNavigation

适用:SharePoint Online

是否在中心网站导航中包含中心网站名称和徽标。

参数属性

类型:System.Boolean
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Identity

适用:SharePoint Online

中心网站的 URL。

参数属性

类型:Microsoft.Online.SharePoint.PowerShell.SpoHubSitePipeBind
默认值:None
支持通配符:False
不显示:False
别名:HubSite

参数集

(All)
Position:0
必需:True
来自管道的值:True
来自管道的值(按属性名称):False
来自剩余参数的值:False

-LogoUrl

适用:SharePoint Online

要在中心导航中使用的徽标的 URL。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-RequiresJoinApproval

适用:SharePoint Online

确定是否需要批准加入中心网站。

参数属性

类型:System.Boolean
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-SiteDesignId

适用:SharePoint Online

网站设计 ID,例如 db752673-18fd-44db-865a-aa3e0b28698e

参数属性

类型:System.Guid
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Title

适用:SharePoint Online

中心网站的显示名称。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

Microsoft.Online.SharePoint.PowerShell.SpoHubSitePipeBind

输出

System.Object