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

Get-WBDisk

Brian Lich|Last Updated: 4/3/2017

SYNOPSIS

Gets a list of internal and external disks that are online for the local computer.

SYNTAX

Get-WBDisk [<CommonParameters>]

DESCRIPTION

The Get-WBDisk cmdlet gets a list of internal and external disks that are online for the local computer. You can add these disks to a WBPolicy object that contains a backup policy by using the New-WBBackupTarget cmdlet to specify online disks as backup storage locations.

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

EXAMPLES

Example 1: Get a list of disks for the local computer

PS C:\> $Disks = Get-WBDisk

This command gets a list of the disks that are on the system. You can then use the WBDisk object in the variable named $Disks to specify a WBBackupTarget object, and use the WBBackupTarget object to specify where to store backups for a WBPolicy object that contains a backup policy.

PARAMETERS

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

None

OUTPUTS

WBDisk[]

This cmdlet returns an array of WBDisk objects for the hard disks that the cmdlet detects on the local computer.

NOTES

Add-WBBackupTarget

Get-WBBackupTarget

Get-WBPolicy

Get-WBVolume

New-WBBackupTarget

Remove-WBBackupTarget

© 2017 Microsoft