奇怪的是,似乎有两种不同的实现New-DPMRecoveryPoint
:
Import-Module DataProtectionManager
Get-Command -Module DataProtectionManager -Name New-DPMRecoveryPoint
Remove-Module DataProtectionManager
Import-Module DPMExtendedCmdlets
Get-Command -Module DPMExtendedCmdlets -Name New-DPMRecoveryPoint
Remove-Module DPMExtendedCmdlets
结果如下:
CommandType Name ModuleName
----------- ---- ----------
Cmdlet New-DPMRecoveryPoint DataProtectionManager
Cmdlet New-DPMRecoveryPoint DPMExtendedCmdlets
您可以检查每个模块的实施帮助:
foreach ( $moduleName in 'DataProtectionManager','DPMExtendedCmdlets')
{
Write-Host "#### ModuleName: $moduleName ####"
Import-Module $moduleName
help New-DPMRecoveryPoint
Remove-Module $moduleName
}
它显示DataProtectionManager\New-DPMRecoveryPoint
有一个参数集如下:
New-DPMRecoveryPoint [-Datasource] <Datasource[]> [-AdhocJobsContext <AdhocJobsContext>]
[-BackupType <BackupType>] [-JobStateChangedEventHandler <JobStateChangedEventHandler>]
[-WithDataIntegrityCheck] -Disk [-Confirm] [-WhatIf] [<CommonParameters>]
这与在线文档非常接近,但并不完全匹配。您可以获得与您安装的实现相匹配的文档,如下所示:
Get-Module | Remove-Module
Import-Module DataProtectionManager
help New-DPMRecoveryPoint -Full