Windows 11 warning — don't delete this folder and what to do if you did

Man typing on Windows 11 laptop
(Image credit: Shutterstock)

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

The Windows 11 logo seen through a digital magnifying glass

(Image credit: Shutterstock)

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.

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:

  1. On your PC, type in "Control Panel" and open the app.
  2. Click Programs
  3. Under Programs and Features, select "Turn Windows features on and off"
  4. The dialog box should come up. Scroll down to find “Internet Information Services” and check the box next to it.
  5. 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

Category
Arrow
Arrow
Back to Laptops
Brand
Arrow
Processor
Arrow
RAM
Arrow
Storage Size
Arrow
Screen Size
Arrow
Colour
Arrow
Condition
Arrow
Screen Type
Arrow
Storage Type
Arrow
Price
Arrow
Any Price
Showing 10 of 104 deals
Filters
Arrow
Show more
TOPICS
Darragh Murphy
Computing Editor

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.