Remove-WebConfigurationBackup
Remove-WebConfigurationBackup
Removes an existing IIS configuration backup.
Sintaxis
Parameter Set: Default
Remove-WebConfigurationBackup [[-Name] <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Descripción detallada
The Remove-WebConfigurationBackup cmdlet removes an Internet Information Services (IIS) configuration backup that was created by using the Backup-WebConfiguration cmdlet.
Parámetros
-Name<String>
Specifies the name of the configuration backup that this cmdlet removes. This cmdlet deletes the folder with this name from the $env:Windir\system32\inetsrv\backup folder.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByPropertyName) |
¿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.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Ejemplos
Example-------------- EXAMPLEExample 1: Adding and removeing an IIS configuration backup --------------e
This example creates a configuration backup, lists the backup created, sleeps for 5 seconds, and then removes the backup.
IIS:\>Backup-WebConfiguration -Name "MyNewBackup"
IIS:\> Get-WebConfigurationBackup -Name "MyNewBackup"
IIS:\> sleep 5
IIS:\> Remove-WebConfigurationBackup -Name "MyNewBackup"