From 15ed6c304a960ab01788861e06b1b8b29896ea8e Mon Sep 17 00:00:00 2001 From: rpremuz Date: Wed, 17 Aug 2016 13:05:26 +0200 Subject: [PATCH] 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). --- .../bitlocker-recovery-guide-plan.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/windows/keep-secure/bitlocker-recovery-guide-plan.md b/windows/keep-secure/bitlocker-recovery-guide-plan.md index 61d362d1a3..1005d019ad 100644 --- a/windows/keep-secure/bitlocker-recovery-guide-plan.md +++ b/windows/keep-secure/bitlocker-recovery-guide-plan.md @@ -410,10 +410,10 @@ You can use the following sample script to create a VBScript file to retrieve th ' Usage ' -------------------------------------------------------------------------------- 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 - Wscript.Echo "Example: GetBitLockerKeyPackageAD E:\bitlocker-ad-key-package mycomputer" + Wscript.Echo "Example: GetBitLockerKeyPackageADDS E:\bitlocker-ad-key-package mycomputer" WScript.Quit End Sub ' -------------------------------------------------------------------------------- @@ -541,13 +541,23 @@ Function BinaryToString(Binary) BinaryToString = S End Function WScript.Quit +``` + 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 ' -------------------------------------------------------------------------------- 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 "Example: GetBitLockerKeyPackage C: E:\bitlocker-backup-key-package" WScript.Quit