New-WssRecoveryOption

Creates a recovery configuration for a file restore operation.

Syntax

New-WssRecoveryOption
   [-OverwriteExisting]
   [-RestoreAcl]
   [<CommonParameters>]

Description

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

Examples

Example 1: Create a recovery configuration

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

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.

Parameters

-OverwriteExisting

Indicates that the restore operation overwrites existing files.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters: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.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.RecoveryOptions

This cmdlet generates recovery options.