Start-OBRegistration
将当前计算机注册到 Microsoft Azure Backup。
语法
Default (默认值)
Start-OBRegistration
[-RecoveryService] <CBServiceResource>
[-Confirm]
[-WhatIf]
说明
Start-OBRegistration cmdlet 将服务器注册到 Microsoft Azure Backup。 该 cmdlet 通过将备份证书上传到保管库来注册服务器。 您可以使用 Get-OBCertificateListFromLocalStore cmdlet 从本地计算机证书存储中获取证书列表。
此 cmdlet 支持 WhatIf 和 Confirm 参数。
默认情况下,cmdlet 会提示用户进行确认。
WhatIf 参数提供了 cmdlet 在不执行任何作的情况下执行的作的详细描述。
Confirm 参数指定 cmdlet 是否应提示用户。
指定 -Confirm:$FALSE
覆盖提示。
若要使用 Microsoft Azure 备份 cmdlet,用户需要是受保护计算机上的管理员。
示例
示例 1:注册服务器
The first command gets the list of certificates from the local computer certificate store, and stores the result in the **$Cert** variable.
$Cert = Get-OBCertificateListFromLocalStore
The second command gets the list of backup vaults that can you use to register the current computer for the fifth certificate stored in **$Cert**. The command stores the result in the **$Item** variable.
$Item = Get-OBRecoveryService -Certificate $Cert[4]
The third command registers the current computer by using the first certificate stored in **$Item**.
Start-OBRegistration -RecoveryService $Item[0]
此示例启动计算机注册。
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
参数属性
类型: | SwitchParameter |
默认值: | False |
支持通配符: | False |
不显示: | False |
参数集
(All)
Position: | Named |
必需: | False |
来自管道的值: | False |
来自管道的值(按属性名称): | False |
来自剩余参数的值: | False |
-RecoveryService
指定 Microsoft Azure Backup 恢复代理。
参数属性
类型: | CBServiceResource |
默认值: | None |
支持通配符: | False |
不显示: | False |
参数集
(All)
Position: | 2 |
必需: | True |
来自管道的值: | True |
来自管道的值(按属性名称): | False |
来自剩余参数的值: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。
参数属性
类型: | SwitchParameter |
默认值: | False |
支持通配符: | False |
不显示: | False |
参数集
(All)
Position: | Named |
必需: | False |
来自管道的值: | False |
来自管道的值(按属性名称): | False |
来自剩余参数的值: | False |