Get-WBDisk

Get-WBDisk

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

Syntax

Get-WBDisk [<CommonParameters>]

Detailed Description

The Get-WBDisks cmdlet gets the list of internal and external disks that are online for the local computer. The disks that you get can be added to the backup policy (WBPolicy object) using the New-WBBackupTarget cmdlet to specify them as backup storage locations.

Parameters

-CommonParameter

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

Input and Return Types

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

Notes

  • To use Windows Server Backup cmdlets, you must be a member of the Administrators group or Backup Operators group.

Examples

EXAMPLE 1

C:\PS>$disks = Get-WBDisk

A list of WBDisk objects.

Description

-----------

Gets the disks present on the system. The WBDisk object can then be used to specify a WBBackupTarget object, to be used as a location to store backups for a backup policy (WBPolicy object).

See Also

Reference

Get-WBPolicy
Get-WBVolume
Get-WBBackupTarget