Redigera

Dela via


Remove-AdfsWebTheme

Removes a web theme.

Syntax

Remove-AdfsWebTheme
      [-TargetName] <String>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AdfsWebTheme
      [-TargetWebTheme] <AdfsWebTheme>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-AdfsWebTheme cmdlet removes an AdfsWebTheme object. Specify a web theme by name or by using the Get-AdfsWebTheme cmdlet.

Examples

Example 1: Remove a named web theme

PS C:\> Remove-AdfsWebTheme -TargetName "Theme01"

This command removes the web theme named Theme01.

Example 2: Remove a web theme by specifying a web theme object

PS C:\> Get-AdfsWebTheme -Name "Theme02" | Remove-AdfsWebTheme

This command uses the Get-AdfsWebTheme cmdlet to get the web theme named Theme02, and then passes it to the current cmdlet by using the pipeline operator. The cmdlet removes that web theme.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TargetName

Specifies a name. The cmdlet removes the theme that you specify by name.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-TargetWebTheme

Specifies an AdfsWebTheme object. The cmdlet removes the theme that you specify. To obtain an AdfsWebTheme object, use the Get-AdfsWebTheme cmdlet.

Type:AdfsWebTheme
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String;Microsoft.IdentityServer.Management.Resources.AdfsWebTheme