Start-OBRegistration

Rejestruje bieżący komputer w usłudze Microsoft Azure Backup.

Składnia

Start-OBRegistration
     [-RecoveryService] <CBServiceResource>
     [-Confirm]
     [-WhatIf]

Opis

Polecenie cmdlet Start-OBRegistration rejestruje serwer w usłudze Microsoft Azure Backup. Polecenie cmdlet rejestruje serwer, przekazując certyfikat kopii zapasowej do magazynu. Aby uzyskać listę certyfikatów z magazynu certyfikatów komputera lokalnego, możesz użyć polecenia cmdlet Get-OBCertificateListFromLocalStore.

To polecenie cmdlet obsługuje parametry WhatIf i Confirm . Polecenie cmdlet domyślnie monituje użytkownika o potwierdzenie. Parametr WhatIf zawiera pełny opis działania polecenia cmdlet bez wykonywania żadnej operacji. Parametr Potwierdź określa, czy polecenie cmdlet powinno monitować użytkownika. Określ —Confirm:$FALSE aby zastąpić monit.

Aby użyć poleceń cmdlet Azure Backup firmy Microsoft, użytkownik musi być administratorem na chronionej maszynie.

Przykłady

Przykład 1. Rejestruje serwer

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]

W tym przykładzie zostanie uruchomiona rejestracja komputera.

Parametry

-Confirm

Monituje o potwierdzenie przed uruchomieniem polecenia cmdlet.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RecoveryService

Określa agenta odzyskiwania usługi Microsoft Azure Backup.

Type:CBServiceResource
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Pokazuje, co się stanie po uruchomieniu polecenia cmdlet. Polecenie cmdlet nie zostało uruchomione.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Dane wejściowe

None

Dane wyjściowe

None