Start-OBRegistration
Inscrit l’ordinateur actuel auprès de Microsoft Sauvegarde Azure.
Syntax
Start-OBRegistration
[-RecoveryService] <CBServiceResource>
[-Confirm]
[-WhatIf]
Description
L’applet de commande Start-OBRegistration inscrit le serveur auprès de Microsoft Sauvegarde Azure. L’applet de commande inscrit le serveur en chargeant un certificat de sauvegarde dans le coffre. Vous pouvez utiliser l’applet de commande Get-OBCertificateListFromLocalStore pour obtenir la liste des certificats à partir du magasin de certificats de l’ordinateur local.
Cette applet de commande prend en charge les paramètres WhatIf et Confirm .
L’applet de commande invite l’utilisateur à confirmer par défaut.
Le paramètre WhatIf fournit une description détaillée de ce que fait l’applet de commande sans effectuer d’opération.
Le paramètre Confirm spécifie si l’applet de commande doit inviter l’utilisateur.
Spécifiez :Confirm:$FALSE
pour remplacer l’invite.
Pour utiliser les applets de commande Microsoft Sauvegarde Azure, l’utilisateur doit être administrateur sur l’ordinateur protégé.
Exemples
Exemple 1 : Inscrit un serveur
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]
Cet exemple démarre une inscription d’ordinateur.
Paramètres
-Confirm
Vous demande une confirmation avant d’exécuter l’applet de commande.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RecoveryService
Spécifie un agent de récupération Microsoft Sauvegarde Azure.
Type: | CBServiceResource |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Montre ce qui se passe en cas d’exécution de l’applet de commande. L’applet de commande n’est pas exécutée.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Entrées
None
Sorties
None