Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Restore the Windows inetpub Folder After Deleting It

Find out why Windows Update created the empty inetpub folder and how to restore it with Microsoft’s published permissions tool.

Table of Contents

Keep the empty inetpub folder if it appeared on your Windows system drive after the April 2025 security updates. If you deleted it, use Microsoft’s published Set-InetpubFolderAcl script to recreate the folder with the intended permissions. Creating an empty folder by hand doesn’t set those permissions.

How to Restore 'inetpub' Folder on Windows 11, Windows 10 Picture 1

Why the folder exists

The folder can appear on systems where Internet Information Services (IIS) is turned off. It is part of a Windows security update, and an empty folder is expected. See the Microsoft release notes for KB5055523 for Windows 11 version 24H2. Other Windows versions received their own cumulative updates.

How to Restore 'inetpub' Folder on Windows 11, Windows 10 Picture 2

How to Restore 'inetpub' Folder on Windows 11, Windows 10 Picture 3

Restore it using Microsoft’s script

Open the Set-InetpubFolderAcl page on the PowerShell Gallery and verify the package and publisher. Use its installation guidance from an administrator PowerShell session, then run the installed script. On a work or school PC, have your administrator handle any script or policy requirements.

How to Restore 'inetpub' Folder on Windows 11, Windows 10 Picture 5

How to Restore 'inetpub' Folder on Windows 11, Windows 10 Picture 7

How to Restore 'inetpub' Folder on Windows 11, Windows 10 Picture 8

The older screenshots also show IIS and an execution-policy command. The Gallery script is intended to restore the folder and its access controls without installing IIS. Follow your organization’s PowerShell policy if script execution is restricted.

How to Restore 'inetpub' Folder on Windows 11, Windows 10 Picture 4

How to Restore 'inetpub' Folder on Windows 11, Windows 10 Picture 6

Confirm the repair

Check the root of your Windows system drive, commonly C:, for inetpub after the script finishes successfully. Keep applying Windows security updates through Windows Update. If the update itself failed, see how to identify a Windows Update error.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.