Get-WBVolume

Windows Server 2012 R2 and Windows 8.1

Get-WBVolume

Retrieves a list of volumes.

구문

Parameter Set: Disk
Get-WBVolume [-Disk] <WBDisk> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AllVolumes
Get-WBVolume [-AllVolumes] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: CriticalVolumes
Get-WBVolume [-CriticalVolumes] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: Policy
Get-WBVolume [-Policy] <WBPolicy> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: VolumePath
Get-WBVolume [-VolumePath] <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]




자세한 설명

The Get-WBVolume cmdlet retrieves a list of volumes. Use this cmdlet to display volumes included in the WBPolicy object, all critical volumes, all volumes, or volumes in the WBDisk object. You can also use this cmdlet to get a WBVolume object of a volume by using the drive letter of that volume.

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

매개 변수

-AllVolumes

Indicates whether to list all volumes included in the backup policy.


별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-CriticalVolumes

Indicates whether to list only critical volumes, such as volumes that contain operating system files and components.


별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Disk<WBDisk>

Indicates whether to list only volumes associated with a certain disk.


별칭

OnDisk

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-Policy<WBPolicy>

Specifies the policy contained in the WBPolicy object to display.


별칭

InPolicy

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-VolumePath<String[]>

Specifies a volume drive letter for the volume where you will store the backups.


별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.


필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.


필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(http://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • WBPolicy,WBDisk,string

    The Get-WBVolume cmdlet queries the WBPolicy object and the WBDisk object, and it references a string that specifies a path to the volumes where you will store the backups.

    Depending on the input parameters, you can use the Get-WBVolume cmdlet to query the WBPolicy object for a list of volumes specified for backup, query the WBDisk object for a list of volumes present on a particular disk, or get a WBVolume object of the volume that the string specifies VolumePath parameter.

    In addition, you can use the Get-WBVolume cmdlet with the parameters CriticalVolumes and AllVolumes to get the WBVolume list of all critical volumes on the system and all the volumes on the system, respectively.


출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • WBVolume []

    The Get-WBVolume cmdlet displays the array of volumes in the WBPolicy object.


참고

  • You can add the volumes that you get from Get-WBVolume to the WBPolicy object by using the Add-WBVolume cmdlet to specify them as volumes to be backed up, or by using the New-WBBackupTarget cmdlet to specify them as backup storage locations.

예제

Example 1: Get a list of volumes on a disk

This example gets all volumes present on a disk.

The first command stores the output of the Get-WBDisk cmdlet in the $Disks variable. The command retrieves a list of all disks on the system.

The second command uses the Get-WBVolume cmdlet to get a list of volumes on the first disk.


PS C:\> $Disks = Get-WBDisk
PS C:\> Get-WBVolume -Disk $Disks[0]

Example 2: Get a list of all volumes in the backup policy

This example gets a list of all volumes that you added for backup in the WBPolicy object.

The first command stores the result of the Get-WBPolicy cmdlet in a variable named $Policy.

The second command gets the volumes from the $Policy variable.


PS C:\> $Policy = Get-WBPolicy
PS C:\> Get-WBVolume -Policy $Policy

Example 3: Get volumes for a specific drive letter

This command gets the WBVolume object for the volume that uses drive letter E:.


PS C:\> Get-WBVolume -VolumePath E: 

Example 4: Get all volumes on a computer

This command gets a list of WBVolume objects of all the volumes present on the computer.


PS C:\> Get-WBVolume -AllVolumes

Example 5: Get all critical volumes on a computer

This command gets the list of all the critical volumes present on the computer. Critical volumes are volumes that contain operating system components and files.


PS C:\> Get-WBVolume -CriticalVolumes

관련 항목

커뮤니티 추가 항목

추가
표시: