For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-PSUBranding

SYNOPSIS

Sets branding for PowerShell Universal.

SYNTAX

Set-PSUBranding [-LoginPageImage <String>] [-AppBarLogo <String>] [-AdminConsoleTitle <String>]
 [-LoginPageTitle <String>] [-LoginPageText <String>] [-LoginPageDescription <String>] [-PrimaryColor <String>]
 [-SecondaryColor <String>] [-PrimaryFontColor <String>] [-SecondaryFontColor <String>]
 [-HeaderFontColor <String>] [-HeaderColor <String>] [-Copyright <String>] [-LoginPageLinks <LoginPageLink[]>]
 [-CssStylesheet <String[]>] [-CssStylesheetIntegrity <String[]>] [-PageNotFoundDescription <String>]
 [-NotAuthorizedDescription <String>] [-AppNotRunningDescription <String>] [-PageNotFoundTitle <String>]
 [-NotAuthorizedTitle <String>] [-LoggedOut <String>] [-LoggedOutDescription <String>] [-Favicon <String>]
 [-DarkAppBarLogo <String>] [-PortalTitle <String>] [-LoginPageTheme <ThemePreference>]
 [-LoginPageCssStylesheet <String>] [-LoginPageLayout <LoginPageLayout>] [-LoginPageBackgroundColor <String>]
 [-LoginPageLogoSize <String>] [-LoginPageFontColor <String>] [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Updates portal, login page, and admin console branding settings for PowerShell Universal. New-PSUBranding and New-PSULoginPage are aliases of this cmdlet.

Each call replaces the branding definition rather than merging only the supplied parameters. Include all settings you want to preserve. When evaluated in .universal\branding.ps1, the cmdlet produces the configuration object for PSU to load. Outside configuration loading, it applies the definition to the connected server and returns it.

See Branding for complete examples, public asset hosting, login layouts, colors, CSS, error messages, and compatibility notes.

EXAMPLES

Example 1: Set logos and the console title

Sets the login image, navigation logo, and admin console browser-title suffix. Publish the image at the specified URL first. Image parameters take browser-accessible URLs, not server filesystem paths. Assets needed before login must allow anonymous access. This call replaces any existing branding definition.

Example 2: Keep a complete branding profile

Keeps related settings together so applying the profile does not omit earlier values. Use System, Light, or Dark for the theme and Vertical or Horizontal for the layout.

PARAMETERS

-AdminConsoleTitle

The admin console browser-title suffix. A developer license uses the development title instead.

The URL of the regular logo to use in the built-in console and portal navigation.

-AppNotRunningDescription

The text to display on the app framework's app-not-running screen, not the server startup/loading screen.

-AppToken

The AppToken that is used for calling the PowerShell Universal Management API. You can also call Connect-PSUServer before calling this cmdlet to set the AppToken for the entire session.

-ComputerName

Specifies the computer name or URL that should be called when accessing the PowerShell Universal Management API. You can also use Connect-PSUServer before calling this cmdlet to set the computer name for the entire session.

The copyright text on the login page and built-in footer where rendered.

-Credential

Credentials to login to the PowerShell Universal Management API.

-CssStylesheet

Compatibility parameter containing branding stylesheet URLs. The current admin console does not load these as global stylesheets. For login-page CSS, use -LoginPageCssStylesheet.

-CssStylesheetIntegrity

Companion integrity values for -CssStylesheet. This does not add an integrity attribute to -LoginPageCssStylesheet.

-Favicon

The URL or text to use for the system browser-tab icon. Branding is the configurable source for the system favicon; if unset, the default is used.

HTTP and HTTPS URLs can be extensionless. Relative image locations must use a path (for example, /branding/icon, ./images/icon, or images/icon) or a filename with an image extension (for example, favicon.ico). Other values are rendered as SVG text.

-HeaderColor

Compatibility setting for older header layouts. The current console layout does not apply it.

-HeaderFontColor

Compatibility setting for older header layouts. The current console layout does not apply it.

-Integrated

Requests integrated management API access when permitted by the server's API security model.

-LoggedOut

The title on the built-in logout screen.

-LoggedOutDescription

The description on the built-in logout screen.

-LoginPageDescription

The description to display near the login logo.

-LoginPageImage

The URL of the image to use on the login page. Publish the asset so unauthenticated browsers can load it; this parameter does not read a local server file.

Compatibility parameter accepting login-page links. The current vertical and horizontal login templates do not render these links.

-LoginPageText

The heading inside the sign-in card.

-LoginPageTitle

The login page title and browser-title suffix. In the current login layout, the visible custom title below the logo is rendered when a custom -LoginPageImage is provided.

-NotAuthorizedDescription

The description to display when the user is not authorized.

-NotAuthorizedTitle

The title to display when the user is not authorized.

-PageNotFoundDescription

The description to display when the page is not found.

-PageNotFoundTitle

The title to display when the page is not found.

-PrimaryColor

Background color for built-in cards that consume the primary branding color, such as the reset-password card. This is not an app Material UI palette setting.

-PrimaryFontColor

Foreground color paired with -PrimaryColor on built-in cards. Set both values together.

-SecondaryColor

Background color of the built-in admin and portal navigation/sidebar.

-SecondaryFontColor

Inherited foreground color of the built-in navigation. More specific component styles can override it.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-UseDefaultCredentials

Whether the cmdlet should use the default credentials.

The URL of the alternate navigation logo used when dark theme is active. Also set -AppBarLogo. This does not change the login image.

-LoginPageTheme

The theme preference for the login page: System, Light, or Dark. The default is System, not Auto. System mode considers the browser's saved PSU theme preference and otherwise the operating system's color preference. This does not set the signed-in console theme.

-PortalTitle

The title used by the portal's resource search and script pages.

-LoginPageCssStylesheet

A stylesheet URL loaded on the login and login-error pages. It does not globally style the console or apps.

-LoginPageLayout

The login page layout: Vertical (default) or Horizontal. The horizontal layout can stack on narrow screens.

-LoginPageBackgroundColor

The login layout background color and primary sign-in button background and border color. This does not remove a built-in background image or set button text color.

-LoginPageFontColor

The color of login-page typography, not a separate input-text or button-label color setting.

-LoginPageLogoSize

The custom login logo width. Pixels, percentages, and other valid CSS widths are allowed; for example, 180px. When unset, a custom login image uses a width of 128px.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

CommonParameters

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

INPUTS

None

OUTPUTS

System.Object

NOTES

PERMISSIONS

The access token requires settings.branding/update to run this cmdlet remotely.

Last updated

Was this helpful?