編集

次の方法で共有


Remove-AdfsWebTheme

Removes a web theme.

Syntax

IdentifierName

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

IdentifierObject

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.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

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

-TargetName

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

Parameter properties

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

Parameter sets

IdentifierName
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-TargetWebTheme

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

Parameter properties

Type:AdfsWebTheme
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

IdentifierObject
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
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

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