我目前正在使用HyperV集群设置DPM 2010,并已find以下PowerShell脚本来自动添加新的集群虚拟机
http://blogs.technet.com/b/dpm/archive/2009/12/03/hyper-v-protection-with-dpm-2010-beta-how-to-automatically-protect-new-virtual-machines。 ASPX
我可以通过DPM Management Shell使脚本完美工作。 我正在努力解决确切的语法,能够运行它作为batch file,我可以使用任务pipe理器每晚运行。 希望有人能帮忙。
我用来从TaskScheduler启动POwerShell的语法有点笨拙,但它的工作原理:
程序: C:\ Windows \ System32 \ WindowsPowerShell \ v1.0 \ powershell.exe
添加参数: -nologo -command“PowerShell脚本path”
开始于: [脚本path]
为我工作。