IT Home June 7th news, technology media Windows Latest released a blog post yesterday (June 6th), reporting that Microsoft has released a new PowerShell script to help users rebuild folders and fix vulnerabilities without turning on IIS.
IT Home previously reported that after Windows 11 and Windows 10 users installed the cumulative update KB5055523 in April, an empty folder named "inetpub" appeared on the C drive of the system, with a size of 0 bytes.
This folder is located in the C:\inetpub\ path, associated with Internet Information Services (IIS) services. Microsoft then reminded that deleting this folder poses a risk of system exposure, resulting in increased permissions or security threats, etc. It is strongly recommended that users recover folders and correctly set access control lists (ACLs).
For users who have been deleted, Microsoft has officially provided 2 solutions to restore the "inetpub" folder. One is to enable the IIS service through the control panel, but this creates additional folders, which are not friendly to non-developer users.
The other is to use the new PowerShell script released on May 28 without turning on IIS You can rebuild the folder. The user needs to run PowerShell as an administrator and execute the following specific commands:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass Install-Script-Name Set-InetpubFolderAcl-Force Set-InetpubFolderAcl
If command not found Error, you can run the full path:
& "C:\Program Files\WindowsPowerShell\Scripts\Set-InetpubFolderAcl.ps1"