Get-WBBackupTarget

Windows Server 2012 R2 and Windows 8.1

Get-WBBackupTarget

Gets backup storage locations that you specified as part of a backup policy.

구문

Parameter Set: Policy
Get-WBBackupTarget [-Policy] <WBPolicy> [ <CommonParameters>]




자세한 설명

The Get-WBBackupTarget cmdlet gets backup storage locations that you specified for a WBPolicy object that contains a backup policy. Valid locations include disks, volumes, or remote shared folders. To view the list of all online disks, use the Get-WBDisk cmdlet.

You can add the locations that the cmdlet returns to a WBPolicy object by specifying them as backup storage locations to the New-WBBackupTarget cmdlet.

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

매개 변수

-Policy<WBPolicy>

Specifies a backup policy object for which to display information.


별칭

InPolicy

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

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

입력

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

  • WBPolicy

    The Get-WBBackupTarget cmdlet queries the backup policy contained in the specified WBPolicy object.


출력

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

  • WBBackupTarget []

    The Get-WBBackupTarget cmdlet displays a list of the storage locations that the backup policy object contains.


예제

Example 1: Get a list of backup targets

This example gets a list of the storage backup locations from a backup policy.

The first command gets the current backup policy and stores it in a variable named $Policy.

The second command gets the list of storage backup locations from the WBPolicy object that is stored in the $Policy variable.


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

관련 항목

커뮤니티 추가 항목

추가
표시: