PowerShell Logo Small

Restore-CARoleService



This is the built-in help made by Microsoft for the command 'Restore-CARoleService', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Restores the CA database and private key information.

SYNTAX


Restore-CARoleService [-Path] <String> [-Force] -DatabaseOnly [-Confirm] [-WhatIf] [<CommonParameters>]
Restore-CARoleService [-Path] <String> [-Force] [-Password <SecureString>] -KeyOnly [-Confirm] [-WhatIf] [<CommonParameters>]
Restore-CARoleService [-Path] <String> [-Force] [-Password <SecureString>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Restore-CARoleService cmdlet restores the certification authority (CA) database and private key information.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=306661
Backup-CARoleService

REMARKS

<

Examples


Example 1: Restore the CA private key and certificate

PS C:\> Restore-CARoleService -Path "C:\CABackup" -KeyOnly



This command restores the CA private key and certificate from the specified path.




Example 2: Restore the CA database only

PS C:\>Restore-CARoleService –Path "C:\CABackup" –DatabaseOnly



This command restores the CA database from the specified path. The command does not restore the CA private key information.




Example 3: Restore the CA key only

PS C:\>Restore-CARoleService –Path "C:\CABackup" -KeyOnly



This command restores the CA private key information to the specified path. The command does not restore the CA database.