none
determine which VM's are not protected - DPM 1807 with Hyper-V 2016 Cluster

    Question

  • Is there a PS command I could run to determine which VM's are not part of a protection group?

    Thanks

    Monday, April 8, 2019 6:23 PM

Answers

  • Hello Jeff,

    I'm not sure if you can get the guest VM's protection status, but you can determine servers/clients that have an agent installed by using the Get-DPMProductionServer cmdlet and then basically select the agents that have no protected datasources, I'll give you an example below.

    Example:

    Get-DPMProductionServer -DPMServerName <YourDPMServer> | Where-Object {$_.ServerProtectionState -eq "NoDatasourcesProtected"}

    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:


    • Edited by Leon Laude Monday, April 8, 2019 7:01 PM
    • Marked as answer by Jeff Regehr Monday, April 8, 2019 7:22 PM
    Monday, April 8, 2019 6:59 PM

All replies

  • Hello Jeff,

    I'm not sure if you can get the guest VM's protection status, but you can determine servers/clients that have an agent installed by using the Get-DPMProductionServer cmdlet and then basically select the agents that have no protected datasources, I'll give you an example below.

    Example:

    Get-DPMProductionServer -DPMServerName <YourDPMServer> | Where-Object {$_.ServerProtectionState -eq "NoDatasourcesProtected"}

    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:


    • Edited by Leon Laude Monday, April 8, 2019 7:01 PM
    • Marked as answer by Jeff Regehr Monday, April 8, 2019 7:22 PM
    Monday, April 8, 2019 6:59 PM
  • Thanks for the help Leon.

    Made a minor modification to the where clause to filter by VM's

    Get-DPMProductionServer -DPMServerName <DPMServerName> | Where-Object {$_.ServerProtectionState -eq "NoDatasourcesProtected" -and $_.ServerName -like "SCVMM*"}


    Monday, April 8, 2019 7:22 PM
  • That's great! I don't have a cluster to test, with but I'm glad you found a way to retrieve this information, this can certainly be helpful for the community!

    Blog: https://thesystemcenterblog.com LinkedIn:

    Monday, April 8, 2019 7:25 PM