Examples/Resources/SPWebAppSuiteBar/1-ApplySuiteBarBranding2016.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<#
.EXAMPLE
    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
            }
        }
    }