Remove-AdfsWebTheme

Remove-AdfsWebTheme

Removes a web theme.

Sintaxis

Parameter Set: IdentifierName
Remove-AdfsWebTheme [-TargetName] <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: IdentifierObject
Remove-AdfsWebTheme [-TargetWebTheme] <AdfsWebTheme> [-Confirm] [-WhatIf] [ <CommonParameters>]

Descripción detallada

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

Parámetros

-TargetName<String>

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

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-TargetWebTheme<AdfsWebTheme>

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

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-Confirm

Solicita confirmación antes de ejecutar el cmdlet.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-WhatIf

Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

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

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

Example 1: Remove a named web theme

This command removes the web theme named Theme01.

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

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

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.

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

Temas relacionados

Export-AdfsWebTheme

Get-AdfsWebTheme

New-AdfsWebTheme

Set-AdfsWebTheme