Share via


Backup-WebConfiguration

Backup-WebConfiguration

Creates a backup of an IIS configuration.

Syntax

Backup-WebConfiguration [-Name] <String> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Detailed Description

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

Parameters

-Name <String>

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

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByPropertyName)

Position?

1

-WarningAction <ActionPreference>

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-WarningVariable <String>

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-CommonParameter

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see About Common Parameter

Input and Return Types

The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.

Input Type

.

Return Type

.

Notes

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

See Also

Reference

Restore-WebConfiguration