Enable-DPMProductionServer

启用 DPM 保护代理。

语法

Default (默认值)

Enable-DPMProductionServer
    [-ProductionServer] <ProductionServer>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

Enable-DPMProductionServer cmdlet 在计算机上启用 System Center - Data Protection Manager (DPM) 保护代理。 启用保护代理后,DPM 会启用计划运行计算机的备份作业。

示例

示例 1:启用保护代理

PS C:\>$DpmPServer = Get-DPMProductionServer -DPMServerName "DpmTsqa01" | Where {$_.Name -eq "dist01.contoso.com"}
PS C:\> Enable-DPMProductionServer -ProductionServer $DpmPServer

第一个命令获取名为 dpmTsqa01 的 DPM 服务器的名为 dist01.contoso.com 的计算机上的 DPM 保护代理。 该命令将结果存储在$DpmPServer变量中。

第二个命令启用存储在$DpmPServer中的保护代理。

参数

-Confirm

在运行 cmdlet 之前,提示你进行确认。

参数属性

类型:SwitchParameter
默认值:False
支持通配符:False
不显示:False
别名:cf

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ProductionServer

指定安装了 DPM 保护代理的计算机。 此 cmdlet 启用保护代理。

参数属性

类型:ProductionServer
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:1
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WhatIf

显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。

参数属性

类型:SwitchParameter
默认值:False
支持通配符:False
不显示:False
别名:无线

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

ProductionServer