Skip to content

Instantly share code, notes, and snippets.

@danjpadgett
Created April 12, 2018 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danjpadgett/5a942e87801a81b209df0ca54c95c3bd to your computer and use it in GitHub Desktop.
Save danjpadgett/5a942e87801a81b209df0ca54c95c3bd to your computer and use it in GitHub Desktop.
MBAM Scripts
Unlock
$SecureString = ConvertTo-SecureString "xxxxxx" -AsPlainText -Force
Unlock-BitLocker -MountPoint "D:" -Password $SecureString
EncryptD
.\manage-bde.exe -protectors -enable d:
$secure = ConvertTo-SecureString "xxxxxx" -AsPlainText -Force
Add-BitLockerKeyProtector -MountPoint "d:" -PasswordProtector $secure
Resume-BitLocker -MountPoint "D:"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment