mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-07 18:17:22 +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**.
|
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:
|
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
|
|
||||||
|
|
||||||
|
```
|
||||||
USE master;
|
USE master;
|
||||||
|
|
||||||
GO
|
GO
|
||||||
|
|
||||||
ALTER DATABASE "MBAM Recovery and Hardware"
|
ALTER DATABASE "MBAM Recovery and Hardware"
|
||||||
|
|
||||||
SET RECOVERY FULL;
|
SET RECOVERY FULL;
|
||||||
|
|
||||||
GO
|
GO
|
||||||
|
|
||||||
-- Create MBAM Recovery Database Data and MBAM Recovery logical backup devices.
|
-- Create MBAM Recovery Database Data and MBAM Recovery logical backup devices.
|
||||||
|
|
||||||
USE master
|
USE master
|
||||||
|
|
||||||
GO
|
GO
|
||||||
|
|
||||||
EXEC sp_addumpdevice 'disk', 'MBAM Recovery and Hardware Database Data Device',
|
EXEC sp_addumpdevice 'disk', 'MBAM Recovery and Hardware Database Data Device',
|
||||||
|
|
||||||
'Z:\MBAM Recovery Database Data.bak';
|
'Z:\MBAM Recovery Database Data.bak';
|
||||||
|
|
||||||
GO
|
GO
|
||||||
|
|
||||||
-- Back up the full MBAM Recovery Database.
|
-- Back up the full MBAM Recovery Database.
|
||||||
|
|
||||||
BACKUP DATABASE [MBAM Recovery and Hardware] TO [MBAM Recovery and Hardware Database Data Device];
|
BACKUP DATABASE [MBAM Recovery and Hardware] TO [MBAM Recovery and Hardware Database Data Device];
|
||||||
|
|
||||||
GO
|
GO
|
||||||
|
|
||||||
BACKUP CERTIFICATE [MBAM Recovery Encryption Certificate]
|
BACKUP CERTIFICATE [MBAM Recovery Encryption Certificate]
|
||||||
|
|
||||||
TO FILE = 'Z:\SQLServerInstanceCertificateFile'
|
TO FILE = 'Z:\SQLServerInstanceCertificateFile'
|
||||||
|
|
||||||
WITH PRIVATE KEY
|
WITH PRIVATE KEY
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
||||||
FILE = ' Z:\SQLServerInstanceCertificateFilePrivateKey',
|
FILE = ' Z:\SQLServerInstanceCertificateFilePrivateKey',
|
||||||
|
|
||||||
ENCRYPTION BY PASSWORD = '$PASSWORD$'
|
ENCRYPTION BY PASSWORD = '$PASSWORD$'
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
GO
|
GO
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Use the following value to replace the values in the code example with values that match your environment:
|
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