How to Protect Files on a Shared Windows PC

  • Updated November 2026
  • Windows 10 and 11
  • 6 min read

A shared PC leaks files when everyone uses one login or stores private items in public folders. This page covers the layers that actually separate people.

Quick answer

Give each person a standard account, move private files into your own profile, and add a password-protected vault for anything an administrator should not read. Permissions alone cannot stop an administrator.

At a glance
FoundationSeparate standard accounts
Stronger layerPassword-protected vault
LimitPermissions do not stop administrators
Two Windows accounts on one PC with a private folder behind a barrier ACCOUNT A Private files ACCOUNT B Shared files One PC, separate access

Separate Accounts Come First

On a shared Windows PC, protection starts with giving each person a standard account, because files in a user folder are private to that account by default. Shared logins erase that boundary. Setting up accounts takes about three minutes and costs nothing.

  1. Open Settings, then Accounts, then Other users

    Choose Add account for each person who uses the PC. Family members can be added as a family member or as another user.

  2. Keep everyone except the maintainer as standard users

    Standard users cannot install system-wide software or change other users' files.

  3. Move sensitive files into the owner's profile

    Documents stored in C:\Users\Public are open to every account. Move private items into your own Documents folder.

  4. Sign out, do not just lock

    A locked screen keeps your session open to anyone who restarts the PC into recovery. Sign out when you leave the PC for long.

Deny Entries With icacls

The icacls command can deny a named account read, write or delete rights on a file. It works on any edition and takes effect immediately. Save the existing permissions first, and test on a copy, because a wrong deny entry can lock you out too.

Command Prompt (run as administrator): save, deny, and undo
icacls "C:\Shared\budget.xlsx" /save "%USERPROFILE%\budget-acl.txt"
icacls "C:\Shared\budget.xlsx" /deny "OtherUser:(R,W,D)"
icacls "C:\Shared\budget.xlsx" /remove:d "OtherUser"

The first line saves the current permissions to a text file, the second blocks reading, writing and deleting for one named account, and the third removes that deny entry again. Replace the path and account name with your own.

The delete-protection guide lists other ways to keep files from being removed on shared machines.

Where Permissions Stop and a Vault Starts

Permissions control who can open a file while Windows is running, and a vault controls who can open it even if they control the machine. The table sets the two side by side by threat, so you can decide when a password-protected locker is worth adding.

Permissions compared with a vault
QuestionPermissions (icacls)Vault with its own password
Stops another standard accountYesYes
Stops an administratorNoYes, without the password
Survives removing the driveNoYes if encrypted
Effort to set upCommand lineInstall, create a locker
Edition limitsNoneNone, product dependent
Folder Lock desktop locker screen
Folder Lock desktop locker.

For a shared family PC, Folder Lock's locker keeps a folder behind one password that is separate from the Windows sign-in. Its screenshot shows the desktop locker view; labels may differ by version.

If the issue is who can plug in USB devices, USB Block's device allow-list addresses that separate problem.

Shared PC Protection Audit

Six checks show whether a shared PC is actually separating people: accounts, standard rights, files outside Public, a password layer, signed-out sessions and a backup. Tick what is true today and the card shows how exposed your files are.

Shared PC exposure check

The card updates as you tick.

The unauthorized-access guide covers more access-control options on Windows and Mac.

Shared PC Questions

Four answers address common doubts: whether other accounts can read your files, whether to share a login, what a deny entry stops and why a file opens for you but not a colleague.

By default, files in your user folder are private to your account, but an administrator can take ownership and read them. Files stored outside it, such as in C:\Users\Public or on a second drive, are often readable by all accounts. Move sensitive files into your own profile and add a password for the ones that matter.

No. A shared account means shared files, history and saved passwords. Create a standard account for each person from Settings, then Accounts, then Other users. Only give administrator rights to the person who maintains the machine, since an administrator can override permissions on any file.

No. An administrator can take ownership of a file and change its permissions, so a deny entry stops ordinary accounts, not people with administrative rights. For files an administrator must not read, encryption with a separate password is the right tool, because permissions alone cannot hold against someone who controls the PC.

That points to a permission or encryption difference. EFS files open only for the user whose certificate encrypted them, and vault lockers need the vault's password or program. Share a password-protected copy, not the live file, and agree on how the password reaches them.

Keep Reading

The main guide covers the three Windows protection layers in full, and each of the other two pages takes one situation and works it through with its own commands, tables and checks.