当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 使用 PowerShell 在 SharePoint 2016 中自定义 Suitebar 文本和链接

作者:精品下载站 日期:2024-12-14 14:25:10 浏览:14 分类:玩电脑

使用 PowerShell 在 SharePoint 2016 中自定义 Suitebar 文本和链接


要求:
SharePoint 2016 默认情况下将“SharePoint”作为套件栏品牌文本。如果您想将其更改为有意义的内容(例如“您的公司内部网”)怎么办?那么,PowerShell 可以帮助自定义 SharePoint 2016 中的品牌文本、徽标和 URL。

[玩转系统] 使用 PowerShell 在 SharePoint 2016 中自定义 Suitebar 文本和链接

用于更改 Suitebar 导航文本和链接的 PowerShell 脚本:


Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

$WebApp= Get-SPWebApplication "https://intranet.crescent.com"
$WebApp.SuiteNavBrandingText = "Crescent Portal"

#Blank image from Layouts folder
$webapp.SuiteNavBrandingLogoUrl = "/_layouts/images/dot_ruleper.gif"
$webapp.SuiteNavBrandingLogoTitle = "Crescent Logo"
$webapp.SuiteNavBrandingLogoNavigationUrl = "https://portal.crescent.com"
$webapp.Update()

这是使用 PowerShell 定制 SharePoint 2016 套件栏品牌的结果!

[玩转系统] 使用 PowerShell 在 SharePoint 2016 中自定义 Suitebar 文本和链接

我关于相关主题的另一篇文章:使用 PowerShell 自定义 SharePoint 2013 套件栏品牌

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯