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

Get-Command Remove-AdfsWebTheme powershell script command cmdlet adfs

You can also read about

  • Export-AdfsWebTheme
  • Get-AdfsWebTheme
  • New-AdfsWebTheme
  • Set-AdfsWebTheme

To know more PowerShell cmdlets(Commands) on Active Directory Federation Services(ADFS) click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *