Start-OBRegistration
將目前的電腦註冊至 Microsoft Azure 備份。
Syntax
Start-OBRegistration
[-RecoveryService] <CBServiceResource>
[-Confirm]
[-WhatIf]
Description
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