Start-OBRegistration
将当前计算机注册到 Microsoft Azure 备份。
语法
Start-OBRegistration
[-RecoveryService] <CBServiceResource>
[-Confirm]
[-WhatIf]
说明
Start-OBRegistration cmdlet 将服务器注册到 Microsoft Azure 备份。 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 之前进行确认。
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RecoveryService
指定 Microsoft Azure 备份恢复代理。
Type: | CBServiceResource |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
显示运行该 cmdlet 时会发生什么情况。 cmdlet 未运行。
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
输入
None
输出
None