{"id":52931,"date":"2026-05-02T16:58:02","date_gmt":"2026-05-02T19:58:02","guid":{"rendered":"https:\/\/mastertrend.info\/?p=52931"},"modified":"2026-05-02T16:58:02","modified_gmt":"2026-05-02T19:58:02","slug":"inetpub-folder-in-windows","status":"publish","type":"post","link":"https:\/\/mastertrend.info\/en\/carpeta-inetpub-windows\/","title":{"rendered":"inetpub folder in Windows: why you shouldn't delete it"},"content":{"rendered":"<h2>inetpub folder Windows and its security function<\/h2>\n<p>An empty folder in the Windows root directory often raises suspicions. Even more so if it appears after an update and has a name that many users associate with web servers. That happened with <strong>inetpub<\/strong>Some saw it on the system drive, found no files inside, and deleted it thinking it was unnecessary leftover data.<\/p>\n<p>In this case, appearances are deceiving. The folder may be empty and still be part of a security mitigation. It's not there for the user to access. It's there because Windows expects it to exist with specific permissions.<\/p>\n<h2>You shouldn't have deleted this folder from Windows, here's how to recover it.<\/h2>\n<h3 class=\"title icon i-list\">What you should decide before touching it<\/h3>\n<ul>\n<li>Microsoft intentionally creates the folder <strong>inetpub<\/strong> on the Windows installation drive.<\/li>\n<li>You should not delete the folder <strong>inetpub<\/strong> to protect the security of your equipment.<\/li>\n<li>And at <a title=\"C\u00f3mo restablecer Windows 10\/11 a trav\u00e9s de CMD\" href=\"https:\/\/mastertrend.info\/en\/how-to-reset-windows-10-11-via-cmd\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"34752\">You deleted it by mistake, you can restore it<\/a> with an official PowerShell script.<\/li>\n<\/ul>\n<p>The frustrating part is that Windows doesn't explain it when it appears. It's simply there, visible, with a technical name and no context for the user. This lack of explanation is what turns a legitimate mitigation tool into a folder that many end up treating as system junk.<\/p>\n<h2 id=\"que-es-la-carpeta-inetpub\">Why did inetpub appear even though IIS was never activated?<\/h2>\n<p>La palabra <strong>inetpub<\/strong> This isn't new to Windows. It's linked to Internet Information Services, or IIS, the component that allows you to host websites and applications from the system. If IIS is active, the folder may contain subfolders such as <em>history<\/em>, <em>logs<\/em> and <em>temp<\/em>.<\/p>\n<p>But here's the nuance: after the KB5055523 updates for Windows 11 and KB5055518 for <a title=\"Windows 11 Settings: 4 Quick Ways to Reset It \ud83d\udd04\u2728\" href=\"https:\/\/mastertrend.info\/en\/windows-11-configuration\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"34751\">Windows 10<\/a>, <strong>inetpub<\/strong> It also started appearing on computers where IIS was not enabled. That's why it seemed like a bug.<\/p>\n<figure><picture><source media=\"(min-width: 1024px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 768px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 481px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 0px)\" data-=\"\" \/><\/picture> <picture><img decoding=\"async\" style=\"display: block; height: auto; max-width: 100%;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/No-deberias-haber-borrado-esta-carpeta-de-Windows-aqui-te.jpg\" alt=\"Carpeta inetpub visible en la unidad C del sistema Windows.\" width=\"1155\" height=\"619\" title=\"\"><\/picture><\/figure>\n<p>The difference between an \"IIS folder\" and a \"folder created by a security update\" is important. In the first case, it's part of a web service. In the second, it acts as part of a security fix related to permissions, paths, and internal Windows operations. They appear the same to the user; for the system, they serve different purposes.<\/p>\n<div id=\"b5b3-45ec-b7979eabadac\" class=\"display-card article article-card small no-badge active-content\" data-include-community-rating=\"false\" data-nosnippet=\"\">\n<figure><picture><source media=\"(min-width: 1024px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 768px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 481px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 0px)\" data-=\"\" \/><\/picture> <picture><img decoding=\"async\" style=\"display: block; height: auto; max-width: 100%;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1750831414_102_No-deberias-haber-borrado-esta-carpeta-de-Windows-aqui-te.jpg\" alt=\"Logo oficial de Windows 11.\" width=\"1920\" height=\"1080\" title=\"\"><\/picture><\/figure>\n<div class=\"w-display-card-content regular article-block\">\n<p>Microsoft clarified the case in the <a href=\"https:\/\/support.microsoft.com\/en-us\/topic\/april-8-2025-kb5055523-os-build-26100-3775-277a9d11-6ebf-410c-99f7-8c61957461eb\" target=\"_blank\" rel=\"noopener\" data-schema-attribute=\"mentions\">documento oficial de soporte KB5055523<\/a>When installing the update, Windows creates a folder <code>%systemdrive%\\inetpub<\/code>even if IIS is not enabled.<\/p>\n<p>The reason is related to CVE-2025-21204. This vulnerability affected the Windows process elevation service and could exploit symbolic links to manipulate file management operations within the Windows Servicing Stack. Simply put, it was a trust issue regarding the paths and permissions Windows uses when working with sensitive files.<\/p>\n<p>Therefore, the key issue isn't whether the folder appears empty. The key issue is who created it, where it's located, and what permissions it has.<\/p>\n<div id=\"631e-414f-b89e3ac5dbec\" class=\"display-card article article-card small no-badge active-content\" data-include-community-rating=\"false\" data-nosnippet=\"\">\n<figure><picture><source media=\"(min-width: 1024px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 768px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 481px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 0px)\" data-=\"\" \/><\/picture> <picture><img decoding=\"async\" style=\"display: block; height: auto; max-width: 100%;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1750831414_339_No-deberias-haber-borrado-esta-carpeta-de-Windows-aqui-te.jpg\" alt=\"Port\u00e1til con Windows 11 y logo de Windows Defender en pantalla.\" width=\"2400\" height=\"1600\" title=\"\"><\/picture><\/figure>\n<h2 id=\"como-restaurar-la-carpeta-inetpub\">The trap of creating a new inetpub manually<\/h2>\n<p>If you've already deleted the folder, creating another one with the same name seems like a reasonable solution. It's not entirely so.<\/p>\n<p>Una carpeta llamada <strong>inetpub<\/strong> A folder created by the user doesn't necessarily have the same permissions as the folder generated by the update. And in this case, permissions aren't a minor detail: they're part of the reason the folder exists.<\/p>\n<p>Puedes comprobarlo desde el Explorador si a\u00f1ades la columna <a title=\"How to change the owner name in Windows 11: Quick guide \ud83d\ude80\" href=\"https:\/\/mastertrend.info\/en\/how-to-change-owner-name-in-windows-11\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"34753\">\"Owner\"<\/a>The folder created by Microsoft appears with an owner <em>System<\/em>A manually created folder is usually associated with the user who created it.<\/p>\n<figure><picture><source media=\"(min-width: 1024px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 768px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 481px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 0px)\" data-=\"\" \/><\/picture> <picture><img decoding=\"async\" style=\"display: block; height: auto; max-width: 100%;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1750831414_595_No-deberias-haber-borrado-esta-carpeta-de-Windows-aqui-te.jpg\" alt=\"Columna Propietario en el Explorador de Archivos mostrando que Sistema es propietario.\" width=\"1053\" height=\"408\" title=\"\"><\/picture><\/figure>\n<p>If the folder is still in the Recycle Bin, restoring it from there might be enough. Otherwise, there are two common approaches: enabling IIS or using the official script. Enabling IIS can recreate the structure, but it also adds components and subfolders specific to a web server. For someone who doesn't use IIS, this is more noise than necessary.<\/p>\n<figure><picture><source media=\"(min-width: 1024px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 768px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 481px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 0px)\" data-=\"\" \/><\/picture> <picture><img decoding=\"async\" style=\"display: block; height: auto; max-width: 100%;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1750831414_92_No-deberias-haber-borrado-esta-carpeta-de-Windows-aqui-te.jpg\" alt=\"Casilla de Servicios de Informaci\u00f3n de Internet activada en caracter\u00edsticas de Windows.\" width=\"1073\" height=\"580\" title=\"\"><\/picture><\/figure>\n<p>The cleanest option is the <a href=\"https:\/\/www.powershellgallery.com\/packages\/Set-InetpubFolderAcl\/1.0\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">official Microsoft script<\/a>because it restores the folder with the appropriate permissions without forcing you to fully activate IIS.<\/p>\n<p>Open PowerShell as administrator and run:<\/p>\n<pre><code>Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass<\/code><\/pre>\n<figure><picture><source media=\"(min-width: 1024px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 768px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 481px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 0px)\" data-=\"\" \/><\/picture> <picture><img decoding=\"async\" style=\"display: block; height: auto; max-width: 100%;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1750831414_811_No-deberias-haber-borrado-esta-carpeta-de-Windows-aqui-te.jpg\" alt=\"Pantalla de PowerShell con el c\u00f3digo para el bypass de ejecuci\u00f3n.\" width=\"1097\" height=\"350\" title=\"\"><\/picture><\/figure>\n<p>Then install the script:<\/p>\n<pre><code>Install-Script -Name Set-InetpubFolderAcl -Force<\/code><\/pre>\n<p>Si PowerShell pide instalar el proveedor NuGet, responde con <strong>AND<\/strong> and press Enter. Then repeat the installation command.<\/p>\n<figure><picture><source media=\"(min-width: 1024px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 768px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 481px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 0px)\" data-=\"\" \/><\/picture> <picture><img decoding=\"async\" style=\"display: block; height: auto; max-width: 100%;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1750831415_673_No-deberias-haber-borrado-esta-carpeta-de-Windows-aqui-te.jpg\" alt=\"Mensaje de requerimiento del proveedor NuGet en PowerShell.\" width=\"1094\" height=\"515\" title=\"\"><\/picture><\/figure>\n<figure><picture><source media=\"(min-width: 1024px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 768px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 481px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 0px)\" data-=\"\" \/><\/picture> <picture><img decoding=\"async\" style=\"display: block; height: auto; max-width: 100%;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1750831415_16_No-deberias-haber-borrado-esta-carpeta-de-Windows-aqui-te.jpg\" alt=\"Ejemplo de comando para crear la carpeta inetpub con permisos especiales en PowerShell.\" width=\"1096\" height=\"546\" title=\"\"><\/picture><\/figure>\n<p>If you see \u201cCommand Not Found\u201d or the script is not called correctly from the console, run it with the full path:<\/p>\n<pre><code>&amp; \"C:\\Program Files\\WindowsPowerShell\\Scripts\\Set-InetpubFolderAcl.ps1\"<\/code><\/pre>\n<p>When finished, check the drive where Windows is installed. The folder <strong>inetpub<\/strong> It should be there again, no longer as an improvised folder, but with the configuration that mitigation expects.<\/p>\n<figure><picture><source media=\"(min-width: 1024px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 768px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 481px)\" data-=\"\" \/><\/picture> <picture><source media=\"(min-width: 0px)\" data-=\"\" \/><\/picture> <picture><img decoding=\"async\" style=\"display: block; height: auto; max-width: 100%;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1750831415_433_No-deberias-haber-borrado-esta-carpeta-de-Windows-aqui-te.jpg\" alt=\"Monitor mostrando el escritorio de Windows 11.\" width=\"2100\" height=\"1400\" title=\"\"><\/picture><\/figure>\n<hr \/>\n<p>No hay mucho m\u00e1s que hacer con <strong>inetpub<\/strong>It doesn't take up significant space, requires no maintenance, and doesn't mean you have a web server running in the background. Its function, in this context, is more subtle: to be present wherever Windows needs it.<\/p>\n<p>The lesson is less obvious than the problem: at the root of the system, an empty folder isn't always just a remnant. Sometimes it's a security measure that goes unnoticed until it's gone.<\/p>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Carpeta inetpub Windows es parte de una actualizaci\u00f3n de seguridad y eliminarla puede afectar la protecci\u00f3n del sistema; as\u00ed puedes restaurarla correctamente.<\/p>","protected":false},"author":1,"featured_media":111263,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ai_generated_summary":"","iawp_total_views":66,"jnews-multi-image_gallery":[],"jnews_single_post":{"format":"standard","override":[{"template":"1","parallax":"1","fullscreen":"1","layout":"right-sidebar","sidebar":"default-sidebar","second_sidebar":"default-sidebar","sticky_sidebar":"1","share_position":"top","share_float_style":"share-monocrhome","show_share_counter":"1","show_view_counter":"1","show_featured":"1","show_post_meta":"1","show_post_author":"1","show_post_author_image":"1","show_post_date":"1","post_date_format":"default","post_date_format_custom":"Y\/m\/d","show_post_category":"1","show_post_reading_time":"1","post_reading_time_wpm":"300","post_calculate_word_method":"str_word_count","zoom_button_out_step":"2","zoom_button_in_step":"3","show_post_tag":"1","show_prev_next_post":"1","show_popup_post":"1","show_comment_section":"1","number_popup_post":"1","show_author_box":"1","show_post_related":"1","show_inline_post_related":"0"}],"image_override":[{"single_post_thumbnail_size":"crop-500","single_post_gallery_size":"crop-500"}],"trending_post_position":"meta","trending_post_label":"Trending","sponsored_post_label":"Sponsored by","disable_ad":"0","subtitle":""},"jnews_primary_category":[],"jnews_social_meta":[],"jnews_review":[],"enable_review":"","type":"percentage","name":"","summary":"","brand":"","sku":"","good":[],"bad":[],"score_override":"","override_value":"","rating":[],"price":[],"jnews_override_counter":{"view_counter_number":"0","share_counter_number":"0","like_counter_number":"0","dislike_counter_number":"0"},"footnotes":""},"categories":[1428],"tags":[1445,1559,1581],"class_list":["post-52931","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","tag-evergreencontent","tag-windows11","tag-windowstips"],"_links":{"self":[{"href":"https:\/\/mastertrend.info\/en\/wp-json\/wp\/v2\/posts\/52931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mastertrend.info\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mastertrend.info\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/en\/wp-json\/wp\/v2\/comments?post=52931"}],"version-history":[{"count":6,"href":"https:\/\/mastertrend.info\/en\/wp-json\/wp\/v2\/posts\/52931\/revisions"}],"predecessor-version":[{"id":111268,"href":"https:\/\/mastertrend.info\/en\/wp-json\/wp\/v2\/posts\/52931\/revisions\/111268"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/en\/wp-json\/wp\/v2\/media\/111263"}],"wp:attachment":[{"href":"https:\/\/mastertrend.info\/en\/wp-json\/wp\/v2\/media?parent=52931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mastertrend.info\/en\/wp-json\/wp\/v2\/categories?post=52931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mastertrend.info\/en\/wp-json\/wp\/v2\/tags?post=52931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}