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

Why Windows Creates the inetpub Folder and How to Restore It

Find out why an empty inetpub folder appeared after a Windows security update, why it should stay, and how to restore it with the right permissions.

Table of Contents

Leave the inetpub folder at the root of your Windows system drive in place. Microsoft’s April 2025 security updates created it on affected systems even when Internet Information Services (IIS) was off. An empty folder is expected in that situation.

inetpub folder at the root of the Windows system drive

Why the folder appeared

IIS traditionally uses inetpub for web content and related files. The security update also uses a protected folder at %SystemDrive%\inetpub, often C:\inetpub. Its presence alone doesn’t show that IIS is installed or running.

See Microsoft’s KB5055523 release notes for the Windows 11 24H2 update. If you’re checking which update is installed, see the Windows Update troubleshooting guide for where to find the KB number and update history.

What to do if you deleted inetpub

Use Microsoft’s Set-InetpubFolderAcl remediation to recreate the folder and set its permissions. Follow the instructions linked from Microsoft’s security advisory, and use the script from its official source. A folder created manually in File Explorer may have different ownership or permissions.

On a work-managed device, ask IT to restore it. If you use IIS and deleted a folder that contained site files or logs, recover those separately from a backup. Restoring the protected directory only restores its structure and permissions.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.