Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 545 Bytes

04. Asset Management.md

File metadata and controls

8 lines (8 loc) · 545 Bytes
Remove all Assets from a Specific vCenter from a specific Protection Policy`
$vCenterName
$Policy = Get-PPDMprotection_policies -filter { assetType eq "VMWARE_VIRTUAL_MACHINE" and name eq "<your policy name>" }
# List the Asset Assignments:
$Policy | Get-PPDMprotection_policies -asset_assignments -filter {details.vm.inventorySourceName eq "<your vcenter name>"}
$Policy | Get-PPDMprotection_policies -asset_assignments -filter {details.vm.inventorySourceName eq "<your vcenter name>"} | Remove-PPDMProtection_policy_assignment
``