New-WssRecoveryOption
New-WssRecoveryOption
Creates a recovery configuration for a file restore operation.
Syntax
Parameter Set: Default
New-WssRecoveryOption [-OverwriteExisting] [-RestoreAcl] [ <CommonParameters>]
Detailed Description
The New-WssRecoveryOption cmdlet creates a recovery configuration that a later file restore operation can use to determine which files to restore.
Parameters
-OverwriteExisting
Indicates that the restore operation overwrites existing files.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
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