Technical Anshu
Tutorials Blog
🏢 Office Shared PC

Folder Locking on a Shared Office PC User Accounts and NTFS Beat Scripts

One office PC, four people, and a folder of quotations that should not be everyone's reading. The instinct is to lock the folder with a script. Resist it: Windows already ships the correct tool for this exact problem, and it costs nothing.

✍️ Technical Anshu🪟 Windows 10 / 11⏱️ 6 minute read
🎥 Watch the full video — the folder locking script shown step by step

On a family PC, a script lock fails against a determined teenager. In an office it fails against something worse: ordinary work. Files get copied to other machines, drives get swapped by IT, and the readable password inside the script becomes shared knowledge within a week. The professional answer is boring and free: one Windows account per person, and NTFS permissions on the folder. Here is the setup, with the honest limits stated too.

Folder Properties — Security tab (illustration)
Folder → Properties → Security Accounts (Accounts Team) Modify ✓ Sales (Sales Team) — ✗ no entry, no access Ramesh (Manager) Full ✓ No password inside any file. Windows itself says no.

Illustration. NTFS permissions are enforced by Windows for every program and every doorway — not by one polite script.

1

Step One — Separate Accounts End Most Office Snooping

Create a standard user account for each person and give every account its own password or PIN. This single step changes the problem completely: each person's documents live in their own profile, which other standard users simply cannot open. Most office "folder locking" requests end here, because the real need was never a vault — it was a boundary. Accounts also give you a basic record of who signed in and when, something a script lock can never provide.

2

Step Two — NTFS Permissions for the Shared Folder

For a folder that lives in a shared place, use its built-in access list. Right-click the folder, open Properties → Security, and remove the groups that should not enter; add only the people or groups who should, and give them Modify rather than Full control unless they genuinely need to manage permissions. Unlike the script's rename trick, NTFS rules are checked by Windows itself for every route — Explorer, other programs, the network. A user without rights gets a clear "access denied," not a puzzle to undo in Notepad.

3

The Honest Limit — the Administrator and the Physical Drive

Be clear-eyed about two limits. First, anyone with an administrator account on that PC can take ownership of any folder and read it; NTFS is a boundary between colleagues, not a wall against the machine's owner. In practice that is usually acceptable — the admin is accountable, and actions leave traces. Second, NTFS does not survive the drive being removed or the PC being booted from a USB stick. For data that must resist even that — laptops that travel, client records, accounts data — the answer is the one from the encryption page in this set: BitLocker on the drive, with accounts and NTFS handling the everyday layer on top.

4

Why the Script Lock Specifically Fails in Offices

  1. The password is readable in the script, so "who knows it" quickly becomes "everyone who ever watched it being opened."
  2. The lock hides the folder from one PC's Explorer only — copy the folder to a pen drive or open it across the network and it arrives unlocked.
  3. There is no log. When something leaks, you cannot show who accessed what — and in a workplace dispute or audit, that absence matters more than the leak.
  4. Colleagues delete hidden things. A vanished "system-looking" folder is exactly what a tidy co-worker or a cleaner utility removes.

Accounts plus NTFS solve all four, using tools already installed. Save script locks for the family PC, where the stakes and the threat are honestly different.

🔴 Office rule of thumb: boundaries between people belong to accounts and permissions; boundaries against theft belong to encryption. A locker script provides neither — it provides a hiding place, and offices are bad at keeping hiding places secret.

🎥 Watch the Complete Video

See the locking script built and tested live, then decide honestly whether it is strong enough for your folder.

▶️ Watch Full Video
❓ Common Questions (FAQ)

Is a folder locker script suitable for an office PC?

Not really. Its password is readable inside the script file, it keeps no access log, it only hides the folder on that one PC, and the hidden folder can be deleted by anyone tidying up. Offices should use separate user accounts with NTFS permissions, plus BitLocker where data must resist physical access.

How do NTFS permissions lock a folder better?

NTFS rules are enforced by Windows itself for every user and every program. Right-click the folder, open Properties and the Security tab, and allow only the people or groups who need access. Users without rights are refused outright — there is no script to read and no rename trick to undo.

Can the office administrator still read a permissions-locked folder?

Yes. A local administrator can take ownership and grant themselves access, so NTFS is a boundary between colleagues, not against the PC's owner. If data must be protected even from administrators or from someone removing the drive, encrypt it — BitLocker for the drive, VeraCrypt for a container.

This guide is based on the Technical Anshu folder locking video • Stuck on a step? Ask in the video comments — you will get a reply 🙏