Menu

Need help with the CLI - i want to use a keyfile, but it doesnt work.

John Doe
2025-06-01
2025-06-01
  • John Doe

    John Doe - 2025-06-01

    Veracrypt 1.26.24
    Windows 11 Pro with all current updates

    Disclaimer:
    I want to automate some things, i know using keyfiles/passwords in batch files isn't super secure.

    I created a test container und a test keyfile
    C:\test\test.hc
    C:\test\test.key

    Mounting over the GUI works.

    veracrypt.exe /v "C:\test\test.hc" /keyfile "C:\test\test.key /p "" /l x /tryemptypass

    (later i want /q /s /e too, but for testing i only use the minimal)

    This opens veracrypt, with the container and drive letter selected, but not the keyfile.

    I tried my best to google this problem, but could find my problem and used even Chatgpt, which gave me wrong answers.

    I am at my wit's end, please help :)

     
  • Adrian Kentleton

    /q means "Automatically perform requested actions and exit (main VeraCrypt window will not be displayed)"; if you don't specify /q, the action won't be performed!

    You either specify /p "" or /tryemptypass, not both, with /q. That should work.

     
    👍
    1
    • John Doe

      John Doe - 2025-06-01

      Thanks, that was it!

       
  • Adrian Kentleton

    PS You don't need quotes around your paths, since they don't contain spaces; but you've not closed quotes in the keyfile path (according to your post).

     

Log in to post a comment.

MongoDB Logo MongoDB