Start-OBRegistration

Registra il computer corrente in Microsoft Backup di Azure.

Sintassi

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

Descrizione

Il cmdlet Start-OBRegistration registra il server in Microsoft Backup di Azure. Il cmdlet registra il server caricando un certificato di backup nell'insieme di credenziali. È possibile usare il cmdlet Get-OBCertificateListFromLocalStore per ottenere l'elenco dei certificati dall'archivio certificati del computer locale.

Questo cmdlet supporta i parametri WhatIf e Confirm . Il cmdlet richiede all'utente la conferma per impostazione predefinita. Il parametro WhatIf fornisce una descrizione dettagliata di ciò che il cmdlet esegue senza eseguire alcuna operazione. Il parametro Confirm specifica se il cmdlet deve richiedere all'utente. Specificare:Confirm:$FALSE per eseguire l'override del prompt.

Per usare i cmdlet di Microsoft Backup di Azure, l'utente deve essere un amministratore nel computer protetto.

Esempio

Esempio 1: Registra un server

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]

In questo esempio viene avviata una registrazione computer.

Parametri

-Confirm

Richiede la conferma dell'utente prima di eseguire il cmdlet.

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

-RecoveryService

Specifica un agente di ripristino di Microsoft Backup di Azure.

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

-WhatIf

Mostra l'esito in caso di esecuzione del cmdlet. Il cmdlet non viene eseguito.

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

Input

None

Output

None