Backup-WebConfiguration
Creates a backup of an IIS configuration.
Syntax
Backup-WebConfiguration
[-Name] <String>
[<CommonParameters>]
Description
The Backup-WebConfiguration cmdlet creates a backup of an Internet Information Services (IIS) configuration. The cmdlet creates a folder with the name specified by the Name parameter for the backup in the $env:Windir\System32\inetsrv\backup folder.
Examples
Example 1: Back up an IIS configuration
IIS:\> Backup-WebConfiguration -Name "MyIISBackup"
Name Creation Date
---- -------------
MyIISBackup 2/20/2009 12:00:00 AM
This command creates a backup of your IIS configuration in a folder named MyIISBackup.
Parameters
-Name
Specifies the name of the folder that this cmdlet creates to store the backup files. If a backup with the name specified already exists, this cmdlet returns an error.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Related Links
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈