To protect files in Windows 11, first decide whether you need a separate password for an archive or encryption tied to your Windows account. A script that hides a folder does not provide either kind of protection.
Create an encrypted archive with a separate password
An encrypted archive is a separate file containing copies of your selected files. It does not automatically protect the original folder or keep later changes synchronized. If you are still on Windows 10, password protecting a file in Windows 10 covers the same archive, EFS and BitLocker options with Windows 10 menus.
- Back up your files and obtain 7-Zip from its official website.
- Open 7-Zip File Manager, select your folder, and choose Add.
- Choose 7z as the archive format. In the encryption section, enter and confirm a strong, unique password. Use AES-256 and enable Encrypt file names if you also want the archive’s internal filenames concealed.
- Choose an archive filename and location, then select OK.
- Close the application. Reopen the archive and extract a test copy into a separate location. Check that an incorrect password fails and the correct password restores files you can open.
Store the password securely. Keep your originals and backups until you have verified recovery. Creating the archive does not remove unencrypted copies elsewhere. Anyone extracting files will need compatible software. For a single Word file, you can skip the archive and password protect the document in Word itself.
7-Zip’s format documentation describes its AES-256 encryption. Microsoft also explains that current File Explorer archive support does not provide encrypted-archive operations; use an appropriate application instead of looking for a native File > Add a Password menu. Microsoft ZIP guidance
Use Windows file encryption when it fits your needs
Windows file encryption is a different option. It is tied to encryption keys available to your user account; it does not ask for a new folder password every time you open a file. It is unavailable in Windows Home.
On a supported edition, right-click the folder, select Properties > Advanced, and select Encrypt contents to secure data. Select OK, then Apply, and review which files and subfolders will be included. Follow the encryption-certificate backup prompt and keep the certificate/private-key backup somewhere secure and separate from the PC.
Back up your data before changing encryption. Do not rely on remembering your account password as the entire recovery plan. Someone using your unlocked account may be able to open files that account can decrypt. Because an unlocked session exposes those files, it also helps to lock the screen automatically after inactivity in Windows 11 whenever you step away.
Microsoft’s file-encryption instructions and certificate-backup guidance explain these requirements.
Why the Notepad locker method is unsuitable
A batch file that renames a folder and changes its hidden/system attributes only changes how the folder is presented. Its password can also be stored directly in readable script text. These actions do not encrypt the files or create a reliable access restriction. Do not use that method to protect private documents. Anyone can reverse that in a few clicks, since the steps to show hidden and protected files in Windows 11 are built into File Explorer.
If you already used such a script, keep your files and the script intact while you locate and back up the folder. Do not assume that a missing folder or forgotten script password means the files were securely encrypted or permanently lost.
Is this the same as BitLocker?
No. BitLocker protects drives, while Encrypting File System (EFS) supplies user-based file encryption. Neither should be described as the same procedure as creating a portable archive with a separate password. Microsoft’s comparison
Matthew Burleigh has been a freelance writer since the early 2000s. You can find his writing all over the Web, where his content has collectively been read millions of times.
Matthew received his Master’s degree in Computer Science, then spent over a decade as an IT consultant for small businesses before focusing on writing and website creation.
The topics he covers for MasterYourTech.com include iPhones, Microsoft Office, and Google Apps.
You can read his full bio here.