Get-WBDisk
Get-WBDisk
Gets a list of internal and external disks that are online for the local computer.
구문
Get-WBDisk [ <CommonParameters>]
자세한 설명
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.
매개 변수
<CommonParameters>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
입력
입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.
- None
출력
출력 유형은 cmdlet이 내보내는 개체의 유형입니다.
WBDisk[]
The Get-WBDisk cmdlet lists an array of WBDisk objects for the hard disks that the cmdlet detects on the local computer.
예제
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