Connect with us

News

Microsoft Rolls Out PowerShell Fix to Restore Critical ‘inetpub’ Folder After April 2025 Windows Updates

Published

on

<p data-start&equals;"108" data-end&equals;"411">Windows users faced a surprise after April’s security updates when an empty <code data-start&equals;"184" data-end&equals;"196">C&colon;&bsol;inetpub<&sol;code> folder suddenly appeared on their systems&period; Now&comma; Microsoft has released a PowerShell script to help restore this folder for those who mistakenly deleted it—because deleting it could reopen a dangerous security hole&period;<&sol;p>&NewLine;<h2 data-start&equals;"418" data-end&equals;"480">Why That Empty &&num;8216&semi;inetpub&&num;8217&semi; Folder Matters More Than You Think<&sol;h2>&NewLine;<p data-start&equals;"482" data-end&equals;"774">If you noticed an empty folder named <code data-start&equals;"519" data-end&equals;"528">inetpub<&sol;code> on your C&colon; drive after the April 2025 updates&comma; you’re not alone&period; This folder is linked to Internet Information Services &lpar;IIS&rpar;&comma; Microsoft’s web server platform&period; But here&&num;8217&semi;s the catch—most users don’t even run IIS&comma; so why is this folder showing up&quest;<&sol;p>&NewLine;<p data-start&equals;"776" data-end&equals;"1054">Turns out&comma; Microsoft created it as a protective measure against a serious vulnerability&comma; CVE-2025-21204&comma; which allows attackers to escalate privileges through Windows Process Activation&period; Simply put&colon; the folder is a kind of safety shield&comma; even if you’re not running a web server&period;<&sol;p>&NewLine;<p data-start&equals;"1056" data-end&equals;"1351">Now&comma; some users got puzzled and deleted the folder&comma; thinking it was useless clutter&period; That’s risky&period; Removing it can leave your system open to the flaw the update was supposed to patch&period; Microsoft warned against deleting it in their advisory but also offered a way to fix things if you already did&period;<&sol;p>&NewLine;<p data-start&equals;"1056" data-end&equals;"1351"><a href&equals;"https&colon;&sol;&sol;www&period;theibulletin&period;com&sol;wp-content&sol;uploads&sol;2025&sol;06&sol;Windows-inetpub-folder-security-patch-April-2025-update&period;jpg"><img class&equals;"aligncenter size-full wp-image-57625" src&equals;"https&colon;&sol;&sol;www&period;theibulletin&period;com&sol;wp-content&sol;uploads&sol;2025&sol;06&sol;Windows-inetpub-folder-security-patch-April-2025-update&period;jpg" alt&equals;"Windows inetpub folder security patch April 2025 update" width&equals;"1156" height&equals;"813" &sol;><&sol;a><&sol;p>&NewLine;<h2 data-start&equals;"1353" data-end&equals;"1428">The PowerShell Script That Brings the Folder Back—and Why It’s Important<&sol;h2>&NewLine;<p data-start&equals;"1430" data-end&equals;"1654">On Wednesday&comma; Microsoft updated its CVE-2025-21204 advisory&comma; releasing a handy PowerShell script to help IT admins and savvy users recreate the folder with the correct permissions&period; The commands are straightforward&colon;<&sol;p>&NewLine;<div class&equals;"contain-inline-size rounded-2xl border-&lbrack;0&period;5px&rsqb; border-token-border-medium relative bg-token-sidebar-surface-primary"><&sol;div>&NewLine;<p data-start&equals;"1776" data-end&equals;"1930">Running this script sets up the right access controls to keep unauthorized users out&comma; closing the door on possible exploitation tied to the vulnerability&period;<&sol;p>&NewLine;<p data-start&equals;"1932" data-end&equals;"2151">The script also secures another folder called on Windows Server machines&comma; which came into play with earlier February 2025 updates&period; So it’s a two-for-one fix that boosts overall system security&period;<&sol;p>&NewLine;<h2 data-start&equals;"2153" data-end&equals;"2209">What Happens If You Don’t Use IIS&quest; The Confusing Part<&sol;h2>&NewLine;<p data-start&equals;"2211" data-end&equals;"2300">You might ask&colon; &OpenCurlyDoubleQuote;But I don’t use IIS at all&comma; so why do I need that folder&quest;” Good question&period;<&sol;p>&NewLine;<p data-start&equals;"2302" data-end&equals;"2576">When you install IIS through the Windows &&num;8220&semi;Turn Windows Features on or off&&num;8221&semi; panel&comma; the <code data-start&equals;"2388" data-end&equals;"2397">inetpub<&sol;code> folder appears naturally&comma; filled with files needed for the web server&period; But if you uninstall IIS&comma; the folder sticks around&comma; empty but still important for this vulnerability patch&period;<&sol;p>&NewLine;<p data-start&equals;"2578" data-end&equals;"2800">Microsoft says that even if IIS isn’t active on your machine&comma; deleting the <code data-start&equals;"2653" data-end&equals;"2662">inetpub<&sol;code> folder isn’t a good idea because it’s now part of Windows’ protection scheme&period; The folder helps keep things locked down behind the scenes&period;<&sol;p>&NewLine;<p data-start&equals;"2802" data-end&equals;"2827">Here’s a quick breakdown&colon;<&sol;p>&NewLine;<ul data-start&equals;"2829" data-end&equals;"3034">&NewLine;<li data-start&equals;"2829" data-end&equals;"2897">&NewLine;<p data-start&equals;"2831" data-end&equals;"2897">Installing IIS&colon; Creates <code data-start&equals;"2855" data-end&equals;"2864">inetpub<&sol;code> with files and system ownership&period;<&sol;p>&NewLine;<&sol;li>&NewLine;<li data-start&equals;"2898" data-end&equals;"2964">&NewLine;<p data-start&equals;"2900" data-end&equals;"2964">Uninstalling IIS&colon; Folder remains&comma; empty but needed for security&period;<&sol;p>&NewLine;<&sol;li>&NewLine;<li data-start&equals;"2965" data-end&equals;"3034">&NewLine;<p data-start&equals;"2967" data-end&equals;"3034">Deleting folder&colon; Opens system back up to privilege escalation risk&period;<&sol;p>&NewLine;<&sol;li>&NewLine;<&sol;ul>&NewLine;<p data-start&equals;"3036" data-end&equals;"3065">So basically&comma; don’t touch it&period;<&sol;p>&NewLine;<h2 data-start&equals;"3067" data-end&equals;"3129">The Security Risk Behind This Folder&colon; What You Need to Know<&sol;h2>&NewLine;<p data-start&equals;"3131" data-end&equals;"3371">The vulnerability fixed here involves an &OpenCurlyDoubleQuote;improper link resolution” in the Windows Update stack&period; This means Windows might follow symbolic links wrongly&comma; allowing attackers to trick the system into changing or accessing files they shouldn’t&period;<&sol;p>&NewLine;<p data-start&equals;"3373" data-end&equals;"3524">The scary bit&quest; Attackers with minimal access could elevate their permissions to the SYSTEM account level&comma; which is basically full control over your PC&period;<&sol;p>&NewLine;<p data-start&equals;"3526" data-end&equals;"3829">Microsoft’s message is clear&colon; the empty <code data-start&equals;"3566" data-end&equals;"3575">inetpub<&sol;code> folder is a shield that shouldn’t be removed&period; Cybersecurity expert Kevin Beaumont even showed how this folder can be misused by non-admin users to block Windows updates by creating a junction link&comma; which highlights its critical role in system integrity&period;<&sol;p>&NewLine;<h2 data-start&equals;"3831" data-end&equals;"3870">What Users Should Do Now&colon; Quick Tips<&sol;h2>&NewLine;<p data-start&equals;"3872" data-end&equals;"3927">If you find the folder missing&comma; here’s what you can do&colon;<&sol;p>&NewLine;<ul data-start&equals;"3929" data-end&equals;"4196">&NewLine;<li data-start&equals;"3929" data-end&equals;"3999">&NewLine;<p data-start&equals;"3931" data-end&equals;"3999">Use the PowerShell script Microsoft released to restore permissions&period;<&sol;p>&NewLine;<&sol;li>&NewLine;<li data-start&equals;"4000" data-end&equals;"4087">&NewLine;<p data-start&equals;"4002" data-end&equals;"4087">Alternatively&comma; reinstall IIS via the control panel to bring the folder back properly&period;<&sol;p>&NewLine;<&sol;li>&NewLine;<li data-start&equals;"4088" data-end&equals;"4143">&NewLine;<p data-start&equals;"4090" data-end&equals;"4143">Never manually delete or modify the <code data-start&equals;"4126" data-end&equals;"4135">inetpub<&sol;code> folder&period;<&sol;p>&NewLine;<&sol;li>&NewLine;<li data-start&equals;"4144" data-end&equals;"4196">&NewLine;<p data-start&equals;"4146" data-end&equals;"4196">Keep your Windows updated with the latest patches&period;<&sol;p>&NewLine;<&sol;li>&NewLine;<&sol;ul>&NewLine;<div class&equals;"&lowbar;tableContainer&lowbar;16hzy&lowbar;1">&NewLine;<div class&equals;"&lowbar;tableWrapper&lowbar;16hzy&lowbar;14 group flex w-fit flex-col-reverse" tabindex&equals;"-1">&NewLine;<table class&equals;"w-fit min-w-&lpar;--thread-content-width&rpar;" data-start&equals;"4198" data-end&equals;"4903">&NewLine;<thead data-start&equals;"4198" data-end&equals;"4339">&NewLine;<tr data-start&equals;"4198" data-end&equals;"4339">&NewLine;<th data-start&equals;"4198" data-end&equals;"4232" data-col-size&equals;"sm">Action<&sol;th>&NewLine;<th data-start&equals;"4232" data-end&equals;"4288" data-col-size&equals;"md">How To<&sol;th>&NewLine;<th data-start&equals;"4288" data-end&equals;"4339" data-col-size&equals;"md">Why It Matters<&sol;th>&NewLine;<&sol;tr>&NewLine;<&sol;thead>&NewLine;<tbody data-start&equals;"4480" data-end&equals;"4903">&NewLine;<tr data-start&equals;"4480" data-end&equals;"4620">&NewLine;<td data-start&equals;"4480" data-end&equals;"4514" data-col-size&equals;"sm">Restore <code data-start&equals;"4490" data-end&equals;"4499">inetpub<&sol;code> folder<&sol;td>&NewLine;<td data-start&equals;"4514" data-end&equals;"4570" data-col-size&equals;"md">Run <code data-start&equals;"4520" data-end&equals;"4542">Set-InetpubFolderAcl<&sol;code> PowerShell script<&sol;td>&NewLine;<td data-start&equals;"4570" data-end&equals;"4620" data-col-size&equals;"md">Re-establishes critical security permissions<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr data-start&equals;"4621" data-end&equals;"4762">&NewLine;<td data-start&equals;"4621" data-end&equals;"4654" data-col-size&equals;"sm">Install IIS<&sol;td>&NewLine;<td data-start&equals;"4654" data-end&equals;"4711" data-col-size&equals;"md">Use &OpenCurlyDoubleQuote;Turn Windows Features on or off” in Control Panel<&sol;td>&NewLine;<td data-start&equals;"4711" data-end&equals;"4762" data-col-size&equals;"md">Creates folder with proper system files<&sol;td>&NewLine;<&sol;tr>&NewLine;<tr data-start&equals;"4763" data-end&equals;"4903">&NewLine;<td data-start&equals;"4763" data-end&equals;"4796" data-col-size&equals;"sm">Avoid Deletion<&sol;td>&NewLine;<td data-start&equals;"4796" data-end&equals;"4853" data-col-size&equals;"md">Don’t delete <code data-start&equals;"4811" data-end&equals;"4823">C&colon;&bsol;inetpub<&sol;code> folder<&sol;td>&NewLine;<td data-start&equals;"4853" data-end&equals;"4903" data-col-size&equals;"md">Prevents exposure to privilege escalation bug<&sol;td>&NewLine;<&sol;tr>&NewLine;<&sol;tbody>&NewLine;<&sol;table>&NewLine;<div class&equals;"sticky end-&lpar;--thread-content-margin&rpar; h-0 self-end select-none">&NewLine;<div class&equals;"absolute end-0 flex items-end"><&sol;div>&NewLine;<&sol;div>&NewLine;<&sol;div>&NewLine;<&sol;div>&NewLine;<p data-start&equals;"4905" data-end&equals;"5031">It might seem weird that an empty folder matters so much&comma; but this isn’t just about files—it’s about keeping your system safe&period;<&sol;p>&NewLine;<p data-start&equals;"5038" data-end&equals;"5302">Microsoft’s warning resonates loud and clear&colon; don’t delete the <code data-start&equals;"5101" data-end&equals;"5110">inetpub<&sol;code> folder&comma; no matter what&period; It’s one of those odd but important things that quietly protect your PC&period; If you’ve deleted it&comma; use their new script or reinstall IIS to stay protected&period; Simple as that&period;<&sol;p>&NewLine;

Hayden Patrick is a writer who specializes in entertainment and sports. He is passionate about movies, music, games, and sports, and he shares his opinions and reviews on these topics. He also writes on other topics when there is no one available, such as health, education, business, and more.

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

TRENDING