The efs decrypt command allows you to decrypt files protected by Windows Encrypting File System (EFS) by providing a PKCS#12 (.pfx) archive containing the necessary certificate and private key. The tool identifies the correct decryption field within the NTFS $EFS stream by matching the certificate thumbprint from the PFX file with the entries in the file's metadata.
To successfully decrypt a file, you must provide:
- A target disk or volume.
- A pfx file path containing the certificate.
- The password for the PFX file.
- The path to the target file (via the standard file selection options used by the tool).
If no output path is specified, the tool will default to saving the decrypted content as <original_filename>.decrypted.
# Note: The exact CLI syntax depends on the global parser, but based on the dispatch logic, the required options are:
# ntfstool efs decrypt --disk <disk> --volume <volume> --pfx <path_to_pfx> --password <pfx_password> [file_options]