Backup-WebConfiguration

Creates a backup of an IIS configuration.

Syntax

Backup-WebConfiguration
      [-Name] <String>
      [<CommonParameters>]

Description

Creates a backup of an IIS configuration. A folder named with the value of theNameparameter is created for the backup in the $env:Windir\System32\inetsrv\backup folder.

Examples

-------------- EXAMPLE 1: Backing up an IIS configuration --------------

IIS:\>Backup-WebConfiguration -Name MyIISBackup

Demonstrates how to create a backup of your IIS configuration in a folder named "MyIISBackup".

Name Creation Date


MyIISBackup 2/20/2009 12:00:00 AM

Required Parameters

-Name

The name of the folder created to store the backup files. If a backup with the name specified already exists, an error is returned.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False