Active Directory · Risk: High · Documentation Verified
Last verified: 2026-10-26
Microsoft ADFS reference: Creates an AD FS web theme. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Use an account with the target resource permissions documented for New-AdfsWebTheme. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Supported environments
Windows / ADFS · Windows Server 2025 documentation; feature/module prerequisites apply
Parameters
-AdditionalFileResource
Specifies an array of Hashtable objects that specify additional file resources by using two string keys: Uri and Path. For more information, type Get-Help about_Hash_Tables. Uri is the relative Uniform Resource Identifier (URI) string for a resource. The URI always begins with /adfs/portal/. Path is the file path of a resource. If you do not specify the path, the cmdlet removes the file resource that corresponds to the specified URI. Specify this parameter to make resources, such as images, available to cascading style sheets or JavaScript applications.
-Confirm
Prompts you for confirmation before running the cmdlet.
-Illustration
Specifies an array of Hashtable objects that specify illustrations by using two string keys: Locale and Path. Locale is a CultureInfo object. Path is a file path. If you do not specify a locale, Locale refers to the invariant locale.
-Logo
Specifies an array of Hashtable objects that specify logos by using two string keys: Locale and Path. Locale is a CultureInfo object. Path is a file path. If you do not specify a locale, Locale refers to the invariant locale. If you do not specify a path, the cmdlet removes the file content that corresponds to the specified locale.
-Name (required)
Specifies a name. The cmdlet assigns the name that you specify to the new theme.
-OnLoadScriptPath
Specify this parameter to make resources, such as images, available to cascading style sheets or JavaScript applications.
-RTLStyleSheetPath
Specifies a file path to a right-to-left (RTL) style sheet.
-SourceName
Specifies the name of an existing theme. The cmdlet uses the theme that you specify as the basis for the new theme.
-StyleSheet
Specifies an array of Hashtable objects that specify style sheets by using two string keys: Locale and Path. Locale is a CultureInfo object for a style sheet. Path is a file path of the style sheet. If you do not specify a locale, Locale refers to the invariant locale. If you do not specify a path, the cmdlet removes the file content that corresponds to the specified locale.
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Prerequisites
Windows with the ADFS module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
Security considerations
This cmdlet changes system state. Review every target and parameter in the official reference, test outside production, and prepare an appropriate backup or rollback. Do not execute the example automatically.
This command creates a theme named Theme02 and copies the existing theme, named Default, into the new theme. You can modify the new theme by using the Export-AdfsWebTheme or Set-AdfsWebTheme cmdlet. Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.