Solved How Do You Create a "Protected Operating System File"?

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
A detailed answer to this thread. :D

If you want to create a protected operating system folder, run an elevated command prompt and type this command into it:

attrib.exe +s +h "Full folder path" /S /D
(Include the quotation marks if the target path has spaces)

If you want to apply this to all the subdirectories and files as well, then type these 2 commands:

attrib.exe +s +h "Full folder path" /S /D
attrib.exe +s +h "Full folder path\*.*" /S /D

If you want to undo this action then replace the "+s +h" with "-s -h"

I hope this helped!
 

My Computers

System One System Two

  • Computer type
    Laptop
    Computer Manufacturer/Model Number
    Microsoft Surface Laptop 3
    OS
    Windows 11 (x64)
    CPU
    Intel Core i5-1035G7
    Motherboard
    Unknown
    Memory
    8GB
    Graphics Card(s)
    Integrated
    Hard Drives
    Solid State Drive
    Antivirus
    Windows Defender (Default Windows AV)
    Browser
    Google Chrome/Opera GX
  • Computer type
    PC/Desktop
Back
Top