Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Get-WBDisk

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Get-WBDisk

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

Syntax


Get-WBDisk [ <CommonParameters>]




Detailed 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.

Parameters

<CommonParameters>

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

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

  • WBDisk[]

    The Get-WBDisk cmdlet lists an array of WBDisk objects for the hard disks that the cmdlet detects on the local computer.


Examples

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

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.


PS C:\> $disks = Get-WBDisk

Related topics

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.