DPM 2010 PowerShell Script - Hyper-V Auto-Protection

    sample PowerShell scripts for enabling DPM 2010 auto-protection of Hyper-V
    • Version:

      1.0 2009-12

      File Name:


      Date Published:


      File Size:

      4 KB

        In any virtualized environment, adding new VMs is a frequent operation. While backup administrators can protect an entire Hyper-V host using the DPM Management Console, the protection group had to be modified manually to include the new virtual machines that have come up on the Hyper-V host. These scripts are expected to work with DPM 2010 Beta. By using them, you should be able to quickly put together a script that can enable the auto protection of your hyper-v hosts. Note: These scripts work on an existing protection group and do not create a fresh protection group. The attached scripts automate the task of adding any new virtual machines recognized in the Hyper-V hosts protected by the DPM server into existing protection groups. There are different scripts for Hyper-V clusters (AddNewClusteredVM.ps1) and standalone Hyper-V hosts (AddNewStandAloneVM.ps1). You would still use the script for standalone servers to automatically protect the non-clustered virtual machines of any Hyper-V host that is part of a cluster. To add new VMs that are added in your primary DPM server, to be protected on the secondary DPM server as well you can use the scripts AddNewClusteredVMToDRServer.ps1 and AddNewStandAloneVMToDRServer.ps1 .
    • Supported Operating System

      Windows Server 2008, Windows Server 2008 R2

        DPM 2010
      • Please provide feedback on these via the DPM blog -- http://blogs.technet.com/DPM