□

Home » cybersecurity » How to Password Protect a Folder on Windows, Mac and SharePoint

How to Password Protect a Folder on Windows, Mac and SharePoint

Most computers have no single “lock this folder” switch. Windows encrypts a folder to your user account, a Mac locks a folder through an encrypted disk image, and SharePoint controls access with permissions instead of passwords. Which method fits depends on your system and on who you are protecting the files from. Whichever you choose, the folder is only as safe as the password behind it, so keep that password in a password manager such as LogMeOnce instead of a sticky note or your memory.

This guide gives the steps for each system, explains what each method actually protects, and shows how to avoid the most common mistake: locking a folder and then losing the key.

Logmeonce
Keep Folder Passwords Secure
Store the passwords protecting your Windows, Mac, and SharePoint files in LogMeOnce, a password management solution for individuals and organizations.

TL;DR

  • Windows 10/11 Pro, Enterprise and Education: right-click the folder, choose Properties, then Advanced, and check “Encrypt contents to secure data.” Windows Home does not offer this feature.
  • Mac: use Disk Utility to create an encrypted, password-protected disk image and keep your files inside it.
  • SharePoint: there is no password on an individual folder. You control access with unique permissions and sharing links.
  • Every method: back up first, and store the password in a password manager so you can always recover access.

What “password protecting a folder” really means

People use the phrase for three different things, and they protect against different risks.

Encryption scrambles the contents so only someone with the right key can read them. Microsoft explains that Windows encryption converts data into code to prevent unauthorized access, and only people with the correct decryption key can open the contents. This is real protection: even if someone copies the files off your drive, they cannot read them.

Account-based locking ties access to who is signed in. On Windows, the key is tied to your user account, so another person using a different Windows account on the same PC cannot open the files. It does not ask you for a separate password each time you open the folder. If you stay signed in, the folder opens normally.

Permissions decide who may see a folder on a shared system such as a company file server or SharePoint. They are access rules, not a scrambled copy of the data.

Knowing which one you need makes the choice easy. Keeping a laptop’s tax records away from a family member who shares the PC calls for encryption. Limiting a client folder to three colleagues calls for permissions.

Three folder protection methods and use cases

How to password protect a folder in Windows 10 or 11

Check your edition first

Before anything else, find out which edition of Windows you have. Microsoft states that file encryption is unavailable in Windows Home. To check, open Settings, then System, then About, and read the Windows specifications section. If it says Home, the steps below will not show the option, and you will need a different approach (see the Home section further down).

Encrypt the folder

On Pro, Enterprise or Education, Microsoft’s own instructions are short:

  1. Right-click the folder and choose Properties.
  2. On the General tab, select Advanced.
  3. Check Encrypt contents to secure data.
  4. Select OK, then Apply, then OK again.

Windows may offer to encrypt just the folder or the folder with its subfolders and files. Choose the second so that everything inside is covered, including files you add later.

Where this goes wrong

  • You still sign in with one account. The protection is only as strong as your Windows sign-in. A weak or reused Windows password undermines it.
  • The key matters. Without the decryption key, the contents stay locked. Windows will prompt you to back up your encryption certificate and key. Do it, and put the backup somewhere other than the same PC.
  • Copying can strip protection. Moving an encrypted file to a USB stick or a cloud service that does not support this kind of encryption may leave a readable copy. Check the copy, not just the original.

Our own guide to encrypting files in Windows 10 walks through the same process in more detail, and our overview of encryption software for Windows covers the cases where the built-in tool is not enough.

Windows Home and managed devices

On Home, the usual route is a separate encryption tool or an encrypted container that asks for a password every time you open it. This is the closest thing to a true “folder password” on Windows, because access depends on a passphrase and not on your sign-in. Our roundup of free encryption tools explains the options.

Organizations on newer Windows 11 builds may also see Personal Data Encryption. Microsoft’s documentation says Windows 11 24H2 can enable it for the Desktop, Documents and Pictures folders, and that prerequisites include Entra or hybrid Entra joining and Windows Hello sign-in. It is an IT-managed feature rather than something an individual turns on, so administrators should read the prerequisites before rolling it out.

How to password protect a folder on a Mac

macOS does not add a password to an ordinary folder either. The standard approach is to put the files into an encrypted disk image, which behaves like a folder that opens only when you enter a password.

  1. Open Disk Utility (Applications, then Utilities).
  2. Choose File, then New Image, then Blank Image.
  3. Name the image, set a size large enough for your files, and choose an encryption option from the Encryption menu.
  4. Enter and verify a password, then save the image.
  5. Open the image, drag your files in, and eject it when you are done.

The original, unprotected files remain where they were until you delete them, so move them into the image instead of copying. Empty the Trash afterward, because a copy left in the Trash is still readable.

The image only protects your files while it is ejected. Leave it mounted and anyone at your unlocked Mac can open it.

We have several step-by-step walkthroughs with screenshots: the ultimate guide to password protecting folders on Mac, a version for MacBook users, and a shorter one on protecting a Mac folder.

Encrypting a whole drive

If you want to protect an entire external drive, Apple Support describes choosing an encrypted file-system format in Disk Utility, entering and verifying a password, and clicking Erase. The password can later be changed from the File menu with Change Password.

Note the word Erase. Apple says encrypting an internal or external storage device this way requires erasing it first, so copy anything you want to keep somewhere else beforehand. This is the single step where people lose data. Make the backup, confirm you can open the files from it, and only then encrypt.

For portable media, see our guides to password protecting a USB drive, thumb drive protection and password-protected external hard drives.

SharePoint and shared team folders

For businesses, the question is usually not “how do I lock this folder” but “who can open it.” SharePoint is built around that idea.

A Microsoft moderator confirms in Microsoft Q&A that SharePoint has no built-in password for individual folders, and recommends setting unique folder permissions. In practice:

  1. Open the library, select the folder, and open its sharing or manage access settings.
  2. Stop inheriting permissions from the parent, so the folder can have its own list.
  3. Remove broad groups and add only the named people or security groups who need access.
  4. Give each person the lowest level that works: view for readers, edit only for those who change files.

When you share by link, Microsoft’s sharing guidance as quoted in Microsoft Q&A lists choices such as Specific people and People with existing access, plus a Can edit setting that controls whether invitees can change files. A password can be set only on an Anyone link, and you must send that password to the recipient separately. Because an Anyone link works for whoever holds it, use Specific people for anything sensitive.

For genuinely sensitive material, a separate library is easier to manage than a single locked folder. A Microsoft Q&A answer notes that Information Rights Management can restrict access at the library level and requires Azure Information Protection in the relevant Microsoft 365 plan.

If someone still sees a folder after you changed its permissions, use the Check Permission function to see which group or link grants them access. Inherited group membership and old sharing links are the usual causes.

Which method fits which reader

Situation Best fit What to watch
One PC, Windows Pro or higher, shared with family Windows folder encryption Back up the encryption key
Windows Home Encrypted container with its own password Store the password safely
Mac with private documents Encrypted disk image Eject it when finished
Portable drive for travel Whole-drive encryption Back up first, because it erases the drive
Team documents on SharePoint Unique permissions, Specific people links Review access regularly
Whole organization or government agency Central identity and access policy Needs admin management, not per-folder passwords

The step everyone skips: managing the password

A folder password creates a new problem. Encryption has no “forgot password” button. Microsoft notes that access to encrypted contents requires the correct decryption key, and with Personal Data Encryption, Microsoft’s overview adds that protected content is unavailable after sign-out and when the device is shut down, and that signing in with a password or FIDO2 key does not grant access to it. Lose the key and the files are effectively gone.

A few habits prevent that:

  • Use a long, unique passphrase. A folder password reused from an email account is only as safe as the weakest site that ever stored it.
  • Store it in a password manager the moment you create it. Not later, not in a notes app.
  • Keep an offline backup of the files and of any recovery key. Test it by opening a file from the backup.
  • For teams, never let a folder password live in one person’s head. When that person leaves, the data leaves with them.

Promo: keep the password where you can always find it

A password manager is the safest home for the password that guards your folder. LogMeOnce’s Password Manager plans start with a Premium plan at $0.00 per month, and paid personal plans are Professional at $2.50 per month, Ultimate at $3.25 per month and Family at $4.99 per month. Organizations can look at Teams at $4.00 per month per user and Business at $7.99 per month per user on the business pricing page, with an Enterprise plan for larger deployments.

Logmeonce

If your files also live in Dropbox, Google Drive or similar services, our cloud storage encryption product is built for that situation, so the protection follows the files off your computer.

Perspective: a locked folder is only half the job

We see the same pattern in how people approach folder security. They find the right menu, set a strong password, and feel finished. The weak point is never the lock itself. It is what happens to the key.

A folder protected by a password you cannot remember is a deleted folder. A folder protected by a password you reused on five websites is an open folder waiting for one breach. Our view is that the lock and the key belong together: encrypt what matters, then put the password in a vault built to hold it.

That is why we build password management, passwordless multi-factor authentication and encrypted cloud storage as one suite. For an individual, that means one place to keep the folder password and every other credential. For a business, a government agency or a managed service provider, it means access that is tied to identities and policies, so a departing employee does not take a secret folder password with them.

Start with a strong passphrase, back up your files, and keep the key somewhere you will always find it.

Mike

FAQ

Can I password protect a folder in SharePoint?

Not directly. SharePoint has no password setting for an individual folder, so you restrict access with unique permissions and Specific people sharing links. A password exists only for Anyone links, and it must be sent to the recipient separately.

Can you lock a folder on a desktop?

Yes, but the method depends on the system. On Windows Pro, Enterprise or Education you can encrypt the folder through Properties and Advanced. On a Mac you create an encrypted disk image in Disk Utility. Windows Home does not include file encryption, so it needs an encrypted container instead.

What happens if I forget the password to an encrypted folder?

Encrypted data cannot be read without the correct key, so forgetting it can mean permanent loss. Keep a backup of the files and of any recovery key, and save the password in a password manager when you create it.

Should I back up before encrypting a drive?

Yes. Apple’s Disk Utility instructions say encrypting a storage device requires erasing it, so anything you want to keep must be copied elsewhere first. Confirm the backup opens before you start.

Sources

Search

Category

Protect your passwords, for FREE

How convenient can passwords be? Download LogMeOnce Password Manager for FREE now and be more secure than ever.