none
SyncToy and Bitlocker RRS feed

  • Question

  • I work from home and rarely need to VPN into our domain. Our administratirs recently deployed BitLocker on our hard drives and any external drives we use. I run synctoy nightly using a command line through scheduler from my laptop to an easystore external drive. Since BitLocker was installed this no longer works because BitLocker needs a password to allow new files to be created or modified on the external drive. Does anyone have any idea if I can send a password through SyncToy to unlock the drive before the copy script runs?
    Tuesday, July 9, 2019 7:25 PM

All replies

  • Something to test out(SyncToy.ps1):

    $BitLockerPass="fjuksAS1337"
    $SecureString = ConvertTo-SecureString $BitLockerPass -AsPlainText -Force
    Unlock-BitLocker -MountPoint "E:" -Password $SecureString
    "C:\Program Files\SyncToy 2.1\SyncToyCmd.exe" -R "PowerShell Projects"

    Note: you should store the encrypted password somewhere other than your script for production use.

    Reference:
    SyncToy
    Unlock-BitLocker

    • Proposed as answer by LeAndre Jones Thursday, July 23, 2020 2:14 PM
    Thursday, July 23, 2020 2:13 PM