Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-WBVssBackupOption

Brian Lich|Last Updated: 4/3/2017

SYNOPSIS

Gets a VSS setting from the backup policy.

SYNTAX

Get-WBVssBackupOption [-Policy] <WBPolicy> [<CommonParameters>]

DESCRIPTION

The Get-WBVSSBackupOption cmdlet gets a setting that determines whether the backups created through the WBPolicy object are Volume Shadow Copy Service (VSS) copy backups or VSS full backups. For more information about VSS copy backups and VSS full backups, or to change this setting, refer to the Set-WBVssBackupOption cmdlet.

To use this cmdlet, you must be a member of the Administrators group or Backup Operators group.

EXAMPLES

Example 1: Get the VSS setting from the backup policy

PS C:\> $Policy = Get-WBPolicy
PS C:\> Get-WBVssBackupOption -Policy $Policy

This example gets the VSS setting, either VssCopyBackup or VssFullBackup.

The first command stores the result of the Get-WBPolicy cmdlet in the variable named $Policy.

The second command gets the VSS setting from the variable $Policy.

PARAMETERS

-Policy

Specifies the WBPolicy object that this cmdlet gets.

Type: WBPolicy
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

WBPolicy

This cmdlet queries the WBPolicy object.

OUTPUTS

Microsoft.Windows.ServerBackup.Commands.VssBackupOptions

This cmdlet returns either a VssCopyBackup or VssFullBackup object, depending on the option specified in the WBPolicy object.

NOTES

Get-WBPolicy

New-WBPolicy

Set-WBVssBackupOption

© 2017 Microsoft