powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Remove-WebConfigurationBackup



NAME
Remove-WebConfigurationBackup

SYNOPSIS
Removes an available IIS confguration backup.

SYNTAX
Remove-WebConfigurationBackup [[-Name] ] [-WarningAction ] [-WarningVariable ] [-
WhatIf] [-Confirm] []


DESCRIPTION
Removes an IIS confguration backup created using the Backup-WebConfiguration cmdlet.


PARAMETERS
-Name
The name of the configuration backup to remove. The folder with this name is deleted from the $env:windir\syste
m32\inetsrv\backup folder.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf
Describes what would happen if you executed the command without actually executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
Prompts you for confirmation before executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




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

C:\PS>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 ba
ckup.






RELATED LINKS