New-WssRecoveryOption

New-WssRecoveryOption

Creates a recovery configuration for a file restore operation.

構文

Parameter Set: Default
New-WssRecoveryOption [-OverwriteExisting] [-RestoreAcl] [ <CommonParameters>]

詳細説明

The New-WssRecoveryOption cmdlet creates a recovery configuration that a later file restore operation can use to determine which files to restore.

パラメーター

-OverwriteExisting

Indicates that the restore operation overwrites existing files.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RestoreAcl

Indicates that the cmdlet restores an access control list (ACL) along with files. An ACL is a list of the users and groups that have permission to view or change a file.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.RecoveryOptions

    This cmdlet generates recovery options.

Example 1: Create a recovery configuration

This command creates a configuration for a file restore operation that includes the ACL along with files and stores the configuration in the variable named $RecoverOpt15.

PS C:\> $RecoverOpt15 = New-WssRecoveryOption -RestoreAcl

関連トピック

Get-WssRecoveryItem