Update bitlocker-recovery-guide-plan.md

The original code of GetBitLockerKeyPackageADDS.vbs script also contained the code of the GetBitLockerKeyPackage.vbs script. So, I split the code and formatted the introduction text before the code of the second script.

In the code of the first script I changed the intended name of the script: GetBitLockerKeyPackageADDS

In both scripts I put the following phrase in the usage string: "Path To Save Key Package". I'd say it is better than "Path To Saved Key Package" because before you run the script the key package has not been saved yet (the script saves the key package).
This commit is contained in:
rpremuz
2016-08-17 13:05:26 +02:00
committed by GitHub
parent 485f95aa42
commit 15ed6c304a

View File

@ -410,10 +410,10 @@ You can use the following sample script to create a VBScript file to retrieve th
' Usage ' Usage
' -------------------------------------------------------------------------------- ' --------------------------------------------------------------------------------
Sub ShowUsage Sub ShowUsage
Wscript.Echo "USAGE: GetBitLockerKeyPackageAD [Path To Saved Key Package] [Optional Computer Name]" Wscript.Echo "USAGE: GetBitLockerKeyPackageADDS [Path To Save Key Package] [Optional Computer Name]"
Wscript.Echo "If no computer name is specified, the local computer is assumed." Wscript.Echo "If no computer name is specified, the local computer is assumed."
Wscript.Echo Wscript.Echo
Wscript.Echo "Example: GetBitLockerKeyPackageAD E:\bitlocker-ad-key-package mycomputer" Wscript.Echo "Example: GetBitLockerKeyPackageADDS E:\bitlocker-ad-key-package mycomputer"
WScript.Quit WScript.Quit
End Sub End Sub
' -------------------------------------------------------------------------------- ' --------------------------------------------------------------------------------
@ -541,13 +541,23 @@ Function BinaryToString(Binary)
BinaryToString = S BinaryToString = S
End Function End Function
WScript.Quit WScript.Quit
```
The following sample script exports a new key package from an unlocked, encrypted volume. The following sample script exports a new key package from an unlocked, encrypted volume.
To run this script, start by saving the code into a VBS file (for example, GetBitLockerKeyPackage.vbs). Then, open an administrator command prompt and use “cscript” to run the saved file (for example, type "cscript GetBitLockerKeyPackage.vbs -?").
**To run the sample key package retrieval script**
1. Save the following sample script in a VBScript file. For example: GetBitLockerKeyPackage.vbs
2. Open an administrator command prompt, type a command similar to the following:
**cscript GetBitLockerKeyPackage.vbs -?**
``` syntax
' -------------------------------------------------------------------------------- ' --------------------------------------------------------------------------------
' Usage ' Usage
' -------------------------------------------------------------------------------- ' --------------------------------------------------------------------------------
Sub ShowUsage Sub ShowUsage
Wscript.Echo "USAGE: GetBitLockerKeyPackage [VolumeLetter/DriveLetter:] [Path To Saved Key Package]" Wscript.Echo "USAGE: GetBitLockerKeyPackage [VolumeLetter/DriveLetter:] [Path To Save Key Package]"
Wscript.Echo Wscript.Echo
Wscript.Echo "Example: GetBitLockerKeyPackage C: E:\bitlocker-backup-key-package" Wscript.Echo "Example: GetBitLockerKeyPackage C: E:\bitlocker-backup-key-package"
WScript.Quit WScript.Quit