powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Backup-WebConfiguration



NAME
Backup-WebConfiguration

SYNOPSIS
Creates a backup of an IIS configuration.

SYNTAX
Backup-WebConfiguration [-Name] [-WarningAction ] [-WarningVariable ] [ rameters>]


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


PARAMETERS
-Name
The name of the folder created to store the backup files. A folder with the name specified is created in the $e
nv:windir\system32\inetsrv\backup folder. If a backup with the name specified already exists an error is return
ed.

Required? true
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


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: Backing up an IIS configuration --------------

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



RELATED LINKS
Restore-WebConfiguration