Remove-AdfsWebTheme
Remove-AdfsWebTheme is accessible with the help of adfs module. To install adfs on your system please refer to this adfs.
Synopsis
Removes a web theme.
Description
The Remove-AdfsWebTheme cmdlet removes an AdfsWebTheme object. Specify a web theme by name or by using the Get-AdfsWebTheme cmdlet.
Parameters
-TargetName
Specifies a name. The cmdlet removes the theme that you specify by name.
Required? true
Position? 1
Default value none
Accept pipeline input? True (ByValue)
Accept wildcard characters? 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.
Required? true
Position? 1
Default value none
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Confirm <SwitchParameter>
Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf <SwitchParameter>
Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
Syntax
Remove-AdfsWebTheme [-TargetName] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-AdfsWebTheme [-TargetWebTheme] <AdfsWebTheme> [-WhatIf] [-Confirm] [<CommonParameters>]
———————-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.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Remove-AdfsWebTheme
You can also read about
- Export-AdfsWebTheme
- Get-AdfsWebTheme
- New-AdfsWebTheme
- Set-AdfsWebTheme