mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-07 10:07:21 +00:00
formatting of a code block
This commit is contained in:
parent
3a20f9a8b5
commit
3eefb473e3
@ -76,54 +76,52 @@ PS C:\> Stop-Website "Microsoft BitLocker Administration and Monitoring"
|
||||
|
||||
1. Use the **Back Up** task in SQL Server Management Studio to back up the Recovery Database on Server A. By default, the database name is **MBAM Recovery Database**.
|
||||
|
||||
2 To automate this procedure, create a SQL file (.sql) that contains the following SQL script, and change the MBAM Recovery Database to use the full recovery mode:
|
||||
|
||||
```syntax
|
||||
2. To automate this procedure, create a SQL file (.sql) that contains the following SQL script, and change the MBAM Recovery Database to use the full recovery mode:
|
||||
|
||||
```
|
||||
USE master;
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
ALTER DATABASE "MBAM Recovery and Hardware"
|
||||
|
||||
|
||||
SET RECOVERY FULL;
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
-- Create MBAM Recovery Database Data and MBAM Recovery logical backup devices.
|
||||
|
||||
|
||||
USE master
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
EXEC sp_addumpdevice 'disk', 'MBAM Recovery and Hardware Database Data Device',
|
||||
|
||||
|
||||
'Z:\MBAM Recovery Database Data.bak';
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
-- Back up the full MBAM Recovery Database.
|
||||
|
||||
|
||||
BACKUP DATABASE [MBAM Recovery and Hardware] TO [MBAM Recovery and Hardware Database Data Device];
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
BACKUP CERTIFICATE [MBAM Recovery Encryption Certificate]
|
||||
|
||||
|
||||
TO FILE = 'Z:\SQLServerInstanceCertificateFile'
|
||||
|
||||
|
||||
WITH PRIVATE KEY
|
||||
|
||||
|
||||
(
|
||||
|
||||
|
||||
FILE = ' Z:\SQLServerInstanceCertificateFilePrivateKey',
|
||||
|
||||
|
||||
ENCRYPTION BY PASSWORD = '$PASSWORD$'
|
||||
|
||||
|
||||
);
|
||||
|
||||
|
||||
GO
|
||||
|
||||
```
|
||||
|
||||
3. Use the following value to replace the values in the code example with values that match your environment:
|
||||
|
Loading…
x
Reference in New Issue
Block a user