Share via


Set-SPOFontPackage

Applies a brand font package to a SharePoint site or Viva Connections.

Syntax

Default (Default)

Set-SPOFontPackage
    [-Identity] <SPOFontPackagePipeBind>
    [-WebUrl] <String>
    [<CommonParameters>]

Description

This cmdlet applies a brand font package to a specified SharePoint site or Viva Connections. Use this cmdlet to customize the typography and branding of SharePoint sites by applying predefined font packages.

Examples

EXAMPLE 1

Set-SPOFontPackage -Identity 12345678-1234-1234-1234-123456789012 -WebUrl "https://contoso.sharepoint.com/sites/marketing"

This example applies the font package with the specified GUID to the marketing site.

EXAMPLE 2

$sites = @("https://contoso.sharepoint.com/sites/hr", "https://contoso.sharepoint.com/sites/finance")
$fontPackage = Get-SPOFontPackage -Identity 12345678-1234-1234-1234-123456789012
foreach ($site in $sites) {
    Set-SPOFontPackage -Identity $fontPackage -WebUrl $site
}

This example retrieves a font package and applies it to multiple sites.

Parameters

-Identity

Applicable: SharePoint Online

Specifies the identity of the font package to apply. This can be the ID (GUID) of the font package, or a font package object.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.SPOFontPackagePipeBind
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WebUrl

Applicable: SharePoint Online

Specifies the URL of the SharePoint site or Viva Connections where the font package will be applied.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Online.SharePoint.PowerShell.SPOFontPackagePipeBind

Outputs

None