{"id":16175,"date":"2024-12-13T06:34:38","date_gmt":"2024-12-13T06:34:38","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=16175"},"modified":"2024-12-13T06:34:41","modified_gmt":"2024-12-13T06:34:41","slug":"cleanup-of-unused-files-under-the-winsxs-folder","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/","title":{"rendered":"Cleanup of Unused Files Under the WinSxS Folder"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction:<\/h2>\n\n\n\n<p>The <strong><em>`C:\\\\Windows\\\\WinSxS`<\/em><\/strong> directory stores DLLs, binaries, and XML files. These files are fundamental for installing and running most of the Windows roles and features. In this insightful article, we will uncover why the WinSxS folder in Windows keeps increasing in size and the methods to clean it up. So let&#8217;s begin.&nbsp;<\/p>\n\n\n\n<p>Whenever Windows updates are installed (usually on the monthly frequency installs), the new version of the updated component is installed, and it retains the earlier version in the WinSxS folder, ensuring consistency and the potential to roll back to previous versions of the components when an update is removed.<\/p>\n\n\n\n<p>Over time, WinSxS folder size continues to accumulate. While having no file size limit, folder size can easily grow up to 15-20 GB on Windows Server.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"444\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder.webp\" alt=\"WinSxS folder\" class=\"wp-image-16178\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder.webp 729w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder-300x183.webp 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Table Content:&nbsp;<\/h2>\n\n\n\n<p>The article will address the following issues:<\/p>\n\n\n\n<p>Wipe out obsolete versions of Windows component files that exist post-update and maximize the Component Store.<\/p>\n\n\n\n<p>Make use of the Features on Demand option to erase unused Windows components stored in your disk space.<\/p>\n\n\n\n<p>Turn on NTFS compression for the WinSxS folder to decrease the size of the WinSxS folder.<\/p>\n\n\n\n<p>Key point to remember: The most frequently asked question from users is if it is safe to delete files manually from the WinSxS folder. The answer is absolutely no! Doing so will damage your Windows installation. Some manual deletion attempts may seem successful, but this approach is not recommended and could lead to serious system issues.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Determine the Size of the WinSxS on Windows Server<\/h2>\n\n\n\n<p>Using File Explorer, the simplest approach to view how large the WinSxS folder is by checking its properties in the <strong><em>%windir%\\\\WinSxS<\/em><\/strong> folder or, alternatively, writing a PowerShell script. The downside to this is that most file managers, including File Explorer, indicate an amount bigger than the size taken by files with even a single byte allocation.<\/p>\n\n\n\n<p>This size mismatch is created because the WinSxS directory contains numerous hard links (symbolic-links) to system files contained in different folders. File managers would count the sizes of the referred files, which do not take up more space on disk.<\/p>\n\n\n\n<p>To display the actual disk space occupied by the WinSxS folder, make use of the du tool from Sysinternals as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>du -v c:\\\\windows\\\\winSXS<\/em><\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"166\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/component-store.webp\" alt=\"component store\" class=\"wp-image-16181\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/component-store.webp 550w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/component-store-300x91.webp 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n\n\n<p>You can also find out the size of the component store (WinSxS folder) by issuing the DISM command in the following syntax:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>Dism.exe \/Online \/Cleanup-Image \/AnalyzeComponentStore<\/em><\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"523\" height=\"399\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/file-size-has-been-reduced.webp\" alt=\"file size has been reduced\" class=\"wp-image-16184\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/file-size-has-been-reduced.webp 523w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/file-size-has-been-reduced-300x229.webp 300w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/figure>\n\n\n\n<p>After the successful execution of the following command, you\u2019ll see that the file size has been reduced.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cleaning up the WinSxS folder (Component Store)<\/h2>\n\n\n\n<p>The cleaning of your WinSxS folder requires a deep optimization. For the seamless optimization, use the command below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>Dism.exe \/Online \/Cleanup-Image \/StartComponentCleanup<\/em><\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"569\" height=\"126\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/startcomponentcleanup-dism.webp\" alt=\"StartComponentCleanup DISM\" class=\"wp-image-16186\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/startcomponentcleanup-dism.webp 569w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/startcomponentcleanup-dism-300x66.webp 300w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/figure>\n\n\n\n<p>Note: StartComponentCleanup DISM works with Windows Servers. Therefore, from Windows Server to the latest Windows Server version, you can use StartComponentCleanup DISM effortlessly.&nbsp;<\/p>\n\n\n\n<p>When the cleaning operations are overseen, what does your current component store size become? For this task, you can use the command line to perform the following actions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>Dism.exe \/Online \/Cleanup-Image \/AnalyzeComponentStore<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>After the cleanup process, we will no longer be able to remove from the system any installed updates or service packs.&nbsp;<\/p>\n\n\n\n<p>In order to remove orphaned versions of components, run the following:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>Dism.exe \/Online \/Cleanup-Image \/StartComponentCleanup \/ResetBase<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>Note: There is an additional Disum in the case of several Windows Server versions. The below command needs to be executed to remove the orphan components that remain after the service packs are installed.&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>DISM \/online \/Cleanup-Image \/spsuperseded<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>We can also use it to delete unwanted previous update files through the \u201cDisk Cleanup\u201d wizard.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"371\" height=\"454\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/windows-update-cleanup.webp\" alt=\"Windows update cleanup\" class=\"wp-image-16189\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/windows-update-cleanup.webp 371w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/windows-update-cleanup-245x300.webp 245w\" sizes=\"auto, (max-width: 371px) 100vw, 371px\" \/><\/figure>\n\n\n\n<p>To begin with, execute the command prompt cleanmgr as an administrator.<\/p>\n\n\n\n<p>After that, select the disk and on the next screen, press the \u201cClean up system files\u201d option.<\/p>\n\n\n\n<p>Lastly, click on \u201cWindows update cleanup.\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"370\" height=\"445\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/windows-update-files.webp\" alt=\"Windows update files\" class=\"wp-image-16192\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/windows-update-files.webp 370w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/windows-update-files-249x300.webp 249w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/figure>\n\n\n\n<p>This is informative because it shows us how much disk space we will be able to free by deleting the older Windows update files.<\/p>\n\n\n\n<p>After executing the DISM clean command for clearing the component store, we may now check how much disk memory has been released.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using the Features on Demand option<\/h2>\n\n\n\n<p>Role and feature binaries on Windows Server also make room for the space. Thus, Features on Demand on Windows is used to delete the binary files of unused roles from the WinSxS folder without much hassle. Use the Uninstall-WindowsFeature PowerShell cmdlet.<\/p>\n\n\n\n<p>Remember that several Windows versions do not contain the Uninstall-WindowsFeature cmdlet. Hence, you need to use DISM.exe to remove features from the Windows image.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"910\" height=\"461\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/list-of-windows-images.webp\" alt=\"list of Windows images\" class=\"wp-image-16195\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/list-of-windows-images.webp 910w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/list-of-windows-images-300x152.webp 300w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/list-of-windows-images-768x389.webp 768w\" sizes=\"auto, (max-width: 910px) 100vw, 910px\" \/><\/figure>\n\n\n\n<p>From the above list of Windows images, choose any one that you want to remove and run the command.&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>DISM.exe \/Online \/Disable-Feature \/Featurename: ImageName \/Remove<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>Replace the ImageName with the name of the file you want to remove.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Enable NTFS Compression on the WinSxS Folder in Windows Server<\/h2>\n\n\n\n<p>In Windows Server, you can reduce the WinSxS directory&#8217;s size. For this WinSxS&#8217;s contents can be compressed using the NTFS file system.<\/p>\n\n\n\n<p>Note: A full backup of your Windows Server image is strongly recommended before making any non-standard changes.<\/p>\n\n\n\n<p>Open the Command Prompt with administrative privileges.<\/p>\n\n\n\n<p>Stop and disable the Windows Installer and Windows Module Installer services using the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>sc stop msiserver&nbsp;&nbsp;<\/em><\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>sc stop TrustedInstaller&nbsp;&nbsp;<\/em><\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>sc config msiserver start= disabled&nbsp;&nbsp;<\/em><\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>sc config TrustedInstaller start= disabled<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>Use the built-in icacls tool to back up the Access Control Lists (ACLs). These are independently assigned to the files and folders under the WinSxS directory. Windows will then create a document without borders that includes a list of files and directories and their corresponding NTFS permissions. In the future, this backup will be essential in recovering the original ACLs.&nbsp;<\/p>\n\n\n\n<p><strong>Command:<\/strong>&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>icacls \"%WINDIR%\\WinSxS\" \/save \"%WINDIR%\\WinSxS_NTFS.acl\" \/t<\/em><\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"56\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/own-winsxs-folder.webp\" alt=\"own the WinSxS folder\" class=\"wp-image-16198\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/own-winsxs-folder.webp 700w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/own-winsxs-folder-300x24.webp 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>Now, to own the WinSxS folder and all the subfolders within it, follow the steps below:&nbsp;<\/p>\n\n\n\n<p>Utilize the takeown command to allow yourself to be the one in charge of the WinSxS folder and all the folders within it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>takeown \/f \"%WINDIR%\\WinSxS\" \/r<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>Grant Full Control Permissions:<\/p>\n\n\n\n<p>Grant your user account full control permissions for the WinSxS directory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>icacls \"%WINDIR%\\WinSxS\" \/grant \"%USERDOMAIN%\\%USERNAME%\":(F) \/t<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>Compress Files in the WinSxS Directory:<\/p>\n\n\n\n<p>Use the compact command to compress the files of the WinSxS folder. Since some of the files will be in use with Windows, include the \/i option to avoid interruptions. Within Windows Server you might prefer the more sophisticated compression named<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>LZX:<\/em><\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>compact \/s : %WINDIR%\\WinSxS \/c \/a \/i * .<\/em><\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"118\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/end-ownership-to-trustedinstaller.webp\" alt=\"End Ownership to TrustedInstaller\" class=\"wp-image-16201\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/end-ownership-to-trustedinstaller.webp 753w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/end-ownership-to-trustedinstaller-300x47.webp 300w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/figure>\n\n\n\n<p>End Ownership to TrustedInstaller<\/p>\n\n\n\n<p>You want the ownership of the WinSxS folder reverted to its original owner, that account TrustedInstaller. Just go to the PowerShell. Write the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>icacls \"%WINDIR%\\WinSxS\" \/setowner \"NT SERVICE\\TrustedInstaller\" \/t<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>Use the ACL backup file created earlier to restore the original permissions of the WinSxS folder and its items:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>icacls \"%WINDIR%\" \/restore \"%WINDIR%\\WinSxS_NTFS.acl\"&nbsp;&nbsp;<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>Reset Services to Default Startup Type:<\/p>\n\n\n\n<p>Restore the default startup type for the Windows Installer and Windows Module Installer services:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>sc config msiserver start= demand&nbsp;&nbsp;<\/em><\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>sc config TrustedInstaller start= demand&nbsp;&nbsp;<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>Check the Current Size of the WinSxS Folder:<\/p>\n\n\n\n<p>Once the compression is complete, you can check the folder size. In one case, it decreased the size of the WinSxS folder and freed up approximately one-third of the space\u2014big for smaller SSD drives.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"330\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/ready-to-use-batch-file.webp\" alt=\"ready-to-use batch file\" class=\"wp-image-16204\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/ready-to-use-batch-file.webp 900w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/ready-to-use-batch-file-300x110.webp 300w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/ready-to-use-batch-file-768x282.webp 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<p>Note: For convenience, you can download a ready-to-use batch file named <strong><em>winsxs_ntfs_compress.bat<\/em><\/strong> to enable NTFS compression on the WinSxS folder.<\/p>\n\n\n\n<div class=\"vlt-box \">\n<div class=\"box-title\" style=\"background:#D5EAFF; color:#000\">Concluding Lines<\/div>\n<div class=\"box-content\" >\n<p>It is essential for organizations to keep the WinSxS folder clean as it aids in optimizing disk space and maintaining the overall performance of the system, especially if it is running on Windows Server. If users optimize the component store and utilize Features on Demand and NTFS compression, they are able to make the directory&#8217;s size manageable without sacrificing the integrity of the system.<\/p>\n<p>As for the folder size reduction and cleaning solutions, you can use software like DISM or get rid of the files by using Disk Cleanup. At the same time, it is important to note that you should not try to delete anything from the WinSxS folder as it can damage the entire Windows installation. Take time to assess the results of using each method to assist you in choosing whether to escalate.<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: The `C:\\\\Windows\\\\WinSxS` directory stores DLLs, binaries, and XML files. These files are fundamental for installing and running most of the Windows roles and features. In this insightful article, we will uncover why the WinSxS folder in Windows keeps increasing in size and the methods to clean it up. So let&#8217;s begin.&nbsp; Whenever Windows updates [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1863],"tags":[],"class_list":["post-16175","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-windows-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WinSxS Folder Cleanup: Optimize Disk Space on Windows<\/title>\n<meta name=\"description\" content=\"Learn to clean and compress the WinSxS folder on Windows Server. Here&#039;s our detailed guide on how to use DISM commands, Disk Cleanup, and NTFS compression.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WinSxS Folder Cleanup: Optimize Disk Space on Windows\" \/>\n<meta property=\"og:description\" content=\"Learn to clean and compress the WinSxS folder on Windows Server. Here&#039;s our detailed guide on how to use DISM commands, Disk Cleanup, and NTFS compression.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-13T06:34:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-13T06:34:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"729\" \/>\n\t<meta property=\"og:image:height\" content=\"444\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Ujwala\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ujwala\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/\",\"name\":\"WinSxS Folder Cleanup: Optimize Disk Space on Windows\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder.webp\",\"datePublished\":\"2024-12-13T06:34:38+00:00\",\"dateModified\":\"2024-12-13T06:34:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8\"},\"description\":\"Learn to clean and compress the WinSxS folder on Windows Server. Here's our detailed guide on how to use DISM commands, Disk Cleanup, and NTFS compression.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder.webp\",\"contentUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder.webp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cleanup of Unused Files Under the WinSxS Folder\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8\",\"name\":\"Ujwala\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g\",\"caption\":\"Ujwala\"},\"description\":\"My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/ujwala\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WinSxS Folder Cleanup: Optimize Disk Space on Windows","description":"Learn to clean and compress the WinSxS folder on Windows Server. Here's our detailed guide on how to use DISM commands, Disk Cleanup, and NTFS compression.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/","og_locale":"en_GB","og_type":"article","og_title":"WinSxS Folder Cleanup: Optimize Disk Space on Windows","og_description":"Learn to clean and compress the WinSxS folder on Windows Server. Here's our detailed guide on how to use DISM commands, Disk Cleanup, and NTFS compression.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2024-12-13T06:34:38+00:00","article_modified_time":"2024-12-13T06:34:41+00:00","og_image":[{"width":729,"height":444,"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder.webp","type":"image\/webp"}],"author":"Ujwala","twitter_misc":{"Written by":"Ujwala","Estimated reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/","name":"WinSxS Folder Cleanup: Optimize Disk Space on Windows","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder.webp","datePublished":"2024-12-13T06:34:38+00:00","dateModified":"2024-12-13T06:34:41+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8"},"description":"Learn to clean and compress the WinSxS folder on Windows Server. Here's our detailed guide on how to use DISM commands, Disk Cleanup, and NTFS compression.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/#primaryimage","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder.webp","contentUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2024\/12\/winsxs-folder.webp"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cleanup-of-unused-files-under-the-winsxs-folder\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Cleanup of Unused Files Under the WinSxS Folder"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8","name":"Ujwala","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g","caption":"Ujwala"},"description":"My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/ujwala\/"}]}},"views":0,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/16175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=16175"}],"version-history":[{"count":11,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/16175\/revisions"}],"predecessor-version":[{"id":16205,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/16175\/revisions\/16205"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=16175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=16175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=16175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}