-
Notifications
You must be signed in to change notification settings - Fork 109
SPWebAppSuiteBar
Yorick Kuijs edited this page Dec 27, 2017
·
12 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
WebAppUrl | Key | string | The URL of the web application | |
SuiteNavBrandingLogoNavigationUrl | Write | String | SP2016+: Url to take the users to when the suite bar logo is clicked | |
SuiteNavBrandingLogoTitle | Write | String | SP2016+: Alternative text for the Suite Bar Logo | |
SuiteNavBrandingLogoUrl | Write | String | SP2016+: URL of the logo for the Suite Bar | |
SuiteNavBrandingText | Write | String | SP2016+: Text to display at the left hand side of the suite bar | |
SuiteBarBrandingElementHtml | Write | String | SP2013: HTML to inject in the left hand-side of the Suite Bar | |
InstallAccount | Write | PSCredential | POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 |
This resource is used to set the Suite Bar branding for web applications. It supports both the SharePoint 2013 and SharePoint 2016 ways of branding the suite bar.
Requirements: For SharePoint 2013, only the SuiteBarBrandingElementHtml should be specified, whereas for SharePoint 2016, only one or all of SuiteNavBrandingLogoNavigationUrl, SuiteNavBrandingLogoTitle, SuiteNavBrandingLogoUrl or SuiteNavBrandingText should be.
This example sets the branding for the suite bar of a given Web Application in SharePoint 2016.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost {
SPWebAppSuiteBar SP2016Branding
{
WebAppUrl = "https://intranet.sharepoint.contoso.com"
SuiteNavBrandingLogoNavigationUrl = "http://sites.sharepoint.com"
SuiteNavBrandingLogoTitle = "This is my logo"
SuiteNavBrandingLogoUrl = "http://sites.sharepoint.com/images/logo.gif"
SuiteNavBrandingText = "SharePointDSC WebApp"
PsDscRunAsCredential = $SetupAccount
}
}
}
This example sets the branding for the suite bar of a given Web Application in SharePoint 2013.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost {
SPWebAppSuiteBar SP2013Branding
{
WebAppUrl = "https://intranet.sharepoint.contoso.com"
SuiteBarBrandingElementHtml = "<div>SharePointDSC WebApp</div>"
PsDscRunAsCredential = $SetupAccount
}
}
}
- Home
- Getting Started
- Pre-requisites
- Installing the module
- Exporting SharePoint Configuration
- Creating Configuration Files
- Pre-created Examples
- Creating an Azure development environment
- Understanding Resources & Syntax
- Remote PowerShell Authentication
- Contributing to SharePointDsc
- Other useful modules for SharePoint DSC configurations