When Microsoft released the April 2025 security updates for Windows, users and administrators started to notice that the update created an empty folder called inetpub on the Windows drive.
Microsoft did not reveal any information about the mysterious folder in first place. This folder was linked to Internet Information Services in the past, but it was created even on systems that never had the feature installed.
It took a few days before Microsoft revealed why it created the folder. According to Microsoft, it was for increased protections. Users should not delete the folder under any circumstances.
Problem was, many did already as Microsoft did not mention any of that in the first days after releasing the update.
A new PowerShell script is now available that will recreate the inetpub folder along with all of its permissions.
Just run Install-Script -Name Set-InetpubFolderAcl in an elevated PowerShell terminal window. It has the following effect:
- If inetpub directory does not exist, it gets created and default IIS permissions are applied to the directory.
- If an empty inetpub directory exists, the default IIS permissions are applied to the directory.
- If inetpub directory exists and only contains the sub-directory DeviceHealthAttestation, default IIS permissions are applied to both directories.
- If inetpub directory exists and contains any other sub-directories, the script exits without making any changes.
So, if you do not have the inetpub folder anymore, you may run the script to restore it. (via Deskmodder)








