Gets the list of internal and external disks that are online for the local computer.
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.
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.
To use Windows Server Backup cmdlets, you must be a member of the Administrators group or Backup Operators group.
C:\PS>$disks = Get-WBDisk
A list of WBDisk objects.
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).