Windows 11 warning — don't delete this folder and what to do if you did
Deleted the 'inetpub' folder? Don't worry, there's a fix

Microsoft caused confusion last week after its latest Windows 11 April 2025 update added a strange folder that was completely empty. Now, we know what it's used for — and it should not be deleted.
During the recent Windows 11 24H2 update, Microsoft planted an "inetpub" folder on PCs. This folder was empty and left many users puzzled by why it was created, with many believing it was made by mistake, seeing as it was not included in the latest patch notes.
Some users believed it to be fine to delete, since it may have been a bug introduced during the latest update. However, Microsoft spoke with Windows Latest to confirm that the "inetpub" folder was intentional and that it is part of a security fix.
Do not delete this folder
Most importantly, Microsoft warned that the folder should not be deleted, even if the Windows 11 PC allows it to. According to the report, the folder is used for a security patch to fix a “CVE-2025-21204," a flaw that allows attackers to modify system files.
"On unpatched devices, Windows Update may follow symbolic links in a way that can let local attackers trick the system into accessing or modifying unintended files or folders," Microsoft states.
Microsoft continues: “This folder should not be deleted regardless of whether Internet Information Services (IIS) is active on the target device. This behaviour is part of changes that increase protection and does not require any action from IT admins and end users,”
Since this was not included during the initial release of the update, Microsoft has now corrected the mistake by including notes on what the folder does. However, since it's been a week since the update, many user may already be in the position of having the file deleted, putting them at risk of the bug.
Sign up to get the BEST of Tom's Guide direct to your inbox.
Get instant access to breaking news, the hottest reviews, great deals and helpful tips.
However, thanks to Windows Latest, the "inetpub" can be restored.
How to restore the Windows 11 folder
For users that thought the folder was just a mistake and deleted it (since Microsoft didn't mention the function of what it does in the update's release notes), there's an easy fix to get it back on your PC.
To restore the "inetpub" folder, you'll need to head into System Settings and turn on IIS (Internet Information System). Follow the steps below:
- On your PC, type in "Control Panel" and open the app.
- Click Programs
- Under Programs and Features, select "Turn Windows features on and off"
- The dialog box should come up. Scroll down to find “Internet Information Services” and check the box next to it.
- Click "Ok"
Once done, the "inetpub" folder should appear again. Since this is crucial security patch to stop attackers from modifying system folders, it's important than anyone who deleted it to restore the folder. Luckily, it's easy enough to do.
If you're looking to make the most out of your PC, check out these top Windows 11 tips.
More from Tom's Guide
- 15 top Windows 11 tips everyone needs to know
- Your 'unsupported' Windows 10 PC can still run Windows 11 in 2025 — here's how
- Microsoft turns 50: 25 best and worst moments













Darragh is Tom’s Guide’s Computing Editor and is fascinated by all things bizarre in tech. His work can be seen in Laptop Mag, Mashable, Android Police, Shortlist Dubai, Proton, theBit.nz, ReviewsFire and more. When he's not checking out the latest devices and all things computing, he can be found going for dreaded long runs, watching terrible shark movies and trying to find time to game
You must confirm your public display name before commenting
Please logout and then login again, you will then be prompted to enter your display name.