How to Protect Files on a Shared Windows PC
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.
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.
| Foundation | Separate standard accounts |
|---|---|
| Stronger layer | Password-protected vault |
| Limit | Permissions do not stop administrators |
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.
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.
Keep everyone except the maintainer as standard users
Standard users cannot install system-wide software or change other users' files.
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.
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.
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.
| Question | Permissions (icacls) | Vault with its own password |
|---|---|---|
| Stops another standard account | Yes | Yes |
| Stops an administrator | No | Yes, without the password |
| Survives removing the drive | No | Yes if encrypted |
| Effort to set up | Command line | Install, create a locker |
| Edition limits | None | None, product dependent |

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.
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.