Remove-WssBackupTarget

Windows Server 2012 R2 and Windows 8.1

Remove-WssBackupTarget

Removes a backup target from a scheduled backup policy.

구문

Parameter Set: Default
Remove-WssBackupTarget [-BackupPolicy] <ScheduledBackupPolicy> [-BackupTarget] <BackupTarget> [ <CommonParameters>]




자세한 설명

The Remove-WssBackupTarget cmdlet removes a backup target from a scheduled backup policy. A scheduled backup policy is a backup file specification that has a backup schedule associated with it. If you remove a backup target from a scheduled backup policy, backups that use the policy no longer back up the files and volumes that the target specifies.

매개 변수

-BackupPolicy<ScheduledBackupPolicy>

Specifies the scheduled backup policy from which to remove the backup target.


별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-BackupTarget<BackupTarget>

Specifies the name of the backup target to remove.


별칭

없음

필수 여부

true

위치

2

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

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

입력

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

출력

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

  • Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.BackupTarget

    This cmldet generates backup targets.


예제

Example 1: Remove a backup target from a policy

This example removes a backup target from a backup policy.

The first command gets the current backup policies and stores them in the $ContosoBUPolicies10 variable.

The second command gets the backup target for the tenth policy in the $ContosoBUPolicies10 array, and then stores the backup target in the $ContosoBUTarget variable.

The third command removes the backup target that is stored in $ContosoBUTarget from the policy stored in $ContosoBUPolicies10[9].


PS C:\> $ContosoBUPolicies10 = Get-WSSBackupPolicy
PS C:\> $ContosoBUTarget = Get-WssBackupTarget -BackupPolicy $ContosoBUPolicies10[9]
PS C:\> Remove-WssBackupTarget -BackupPolicy $ContosoBUPolicy10[9] -BackupTarget $ContosoBUTarget

관련 항목

커뮤니티 추가 항목

추가
표시: