Remove-WebConfigurationBackup

Removes an existing IIS configuration backup.

Syntax

Remove-WebConfigurationBackup
      [[-Name] <String>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Removes an IIS configuration backup that was created by using theT:Microsoft.IIs.PowerShell.Provider.Backup-WebConfigurationcmdlet.

Examples

-------------- EXAMPLE 1: Adding and removing an IIS configuration backup --------------

IIS:\>Backup-WebConfiguration MyNewBackup Get-WebConfigurationBackup MyNewBackup sleep 5 Remove-WebConfigurationBackup MyNewBackup

The example creates a configuration backup, lists the backup created, sleeps for 5 seconds, and then removes the backup.

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

The name of the configuration backup that is to be removed. The folder with this name is deleted from the $env:Windir\system32\inetsrv\backup folder.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
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
Accept pipeline input:False
Accept wildcard characters:False