Hi Gayana Roshan,
I understand how frustrating this is, especially when you know the files are yours and you still have the key and certificate. Based on what you described, the padlock icon on individual files/folders strongly points to EFS (Encrypting File System):
- EFS encryption is tied to the original Windows user account’s certificate
- When that account was lost, Windows no longer trusts the files.
Having the EFS certificate and private key is the only valid recovery option. If you still have that combo, the files may still be recoverable. So if you found it, import the EFS certificate on your current Windows 11 PC:
- Sign in using the account you want to access the files with
- The certificate file is usually
.pfxor.p12> double-click to open - Choose Current User when prompted > follow the Certificate Import Wizard
- Enter the certificate password and accept all defaults when prompted > Complete
- Sign out and sign back in > Reconnect the external drive and try opening the files again
However, please note that if you can't access the certificate file, or it does not contain the private key, there is no supported way to recover EFS‑encrypted files. Microsoft cannot regenerate or bypass these keys by design. If the certificate is only a .cer without the private key, it will not work.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.