Nutanix: Add Unprotected VMs to Protection Domain
order Seroquel overnight One line of goodness….
1 |
Get-NTNXVM | where-object {$_.protectionType -Match "unprotected" -and $_.vmName -notlike "*CVM*"} | % { Add-NTNXProtectionDomainVM -Ids $_.vmId -PdName "PD" } |