Skip to content

Instantly share code, notes, and snippets.

@KingBain
Created May 14, 2015 14:17
Show Gist options
  • Save KingBain/77f081a09be2840a14ec to your computer and use it in GitHub Desktop.
Save KingBain/77f081a09be2840a14ec to your computer and use it in GitHub Desktop.
Refactor my VB
status = sysDrive.EnableKeyProtectors()
if status <> 0 then
logger.LogError(now & " " & sysDrive.DeviceID & " Unable to resume bitlocker. Error: " & hex(status))
else
shell.RegDelete "HKEY_LOCAL_MACHINE\SOFTWARE\"&cicRegistryFolderName&"\"&registryFolder&"\WhenBitlockerPaused"
logger.Log(now & " Bitlocker has been resumed")
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment