{"id":257,"date":"2015-04-19T17:30:47","date_gmt":"2015-04-19T17:30:47","guid":{"rendered":"https:\/\/notiz.comanet.xyz\/?p=257"},"modified":"2019-03-03T19:42:29","modified_gmt":"2019-03-03T18:42:29","slug":"winsxs-folder-clean-up","status":"publish","type":"post","link":"https:\/\/notiz.comanet.xyz\/?p=257","title":{"rendered":"WinSxS Folder Clean Up"},"content":{"rendered":"<p> \t<img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-256\" alt=\"\" src=\"https:\/\/notiz.comanet.xyz\/wp-content\/uploads\/2015\/04\/winsxs-size.png\" style=\"width: 600px; height: 408px;\" width=\"600\" height=\"408\" srcset=\"https:\/\/notiz.comanet.xyz\/wp-content\/uploads\/2015\/04\/winsxs-size.png 600w, https:\/\/notiz.comanet.xyz\/wp-content\/uploads\/2015\/04\/winsxs-size-300x204.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p> \tSource: MSDN Lybrary &#8211; <a href=\"https:\/\/msdn.microsoft.com\/library\/dn251565.aspx\">Clean Up the WinSxS Folder<\/a><\/p>\n<p> \tUpdated: October 20, 2013<\/p>\n<p> \tApplies To: Windows 8.1, Windows Server 2012 R2<\/p>\n<p> \tOne commonly asked question is can I delete the WinSxS folder to regain some disk space? The short answer is no. However, there are ways to reduce the size of the WinSxS folder. For more information about the WinSxS folder, see <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/dn251569.aspx\">Manage the Component Store<\/a>. This topic was written to provide information about the different ways to reduce the size of the WinSxS folder on a running version of Windows 8.1.<\/p>\n<p> \tWindows 8.1 and Windows&nbsp;Server 2012 R2 automatically reduces the size of the WinSxS by using methods similar to the ones described in this topic, however these methods also include internal processes, such as uninstalling and deleting packages with components that have been replaced by other components with newer versions. Previous versions of some components are kept on the system for a period of time, allowing you to rollback if necessary. After a period of time, these components are removed from the installation.<\/p>\n<p> \tYou can also reduce the size of a Windows image using some of the same techniques, as discussed in <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/dn251567.aspx\">Reduce the Size of the Component Store in an Offline Windows Image<\/a>.<\/p>\n<div class=\"alert\">\n<table>\n<tbody>\n<tr>\n<th align=\"left\"> \t\t\t\t\t<img decoding=\"async\" alt=\"Warning\" id=\"Warning\" src=\"https:\/\/i-msdn.sec.s-msft.com\/dynimg\/IC174466.gif\" title=\"Warning\" \/>Warning<\/th>\n<\/tr>\n<tr>\n<td> \t\t\t\t\tDeleting files from the WinSxS folder or deleting the entire WinSxS folder may severely damage your system so that your PC might not boot and make it impossible to update.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \t\t&nbsp;<\/p>\n<\/p><\/div>\n<p> \tIn Windows 8.1 and Windows&nbsp;Server 2012 R2, you have a number of ways to start the cleanup of the component store, which use a combination of package deletion and component compression to clean up the WinSxS folder:<\/p>\n<div>\n<h2 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t&nbsp;<\/h2>\n<div>\n<h2 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t<a class=\"LW_CollapsibleArea_TitleAhref\" role=\"button\" title=\"Click to collapse. Double-click to collapse all.\"><span class=\"LW_CollapsibleArea_Title\">Task Scheduler<\/span><\/a><\/h2>\n<\/p><\/div>\n<div class=\"sectionblock\">\n<p> \t\t\tThe <strong>StartComponentCleanup<\/strong> task was created in Windows&nbsp;8 to regularly clean up components automatically when the system is not in use. This task is set to run automatically when triggered by the operating system. When run automatically, the task will wait at least 30 days after an updated component has been installed before uninstalling the previous versions of the component.<\/p>\n<p> \t\t\tIf you choose to run this task, the task will have a 1 hour timeout and may not completely clean up all files.<\/p>\n<div>\n<h3 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t\t&nbsp;<\/h3>\n<div>\n<h3 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t\t\t<a class=\"LW_CollapsibleArea_TitleAhref\" role=\"button\" title=\"Click to collapse. Double-click to collapse all.\"><span class=\"LW_CollapsibleArea_Title\">Run the StartComponentCleanup task in Task Scheduler to clean up and compress components<\/span><\/a><\/h3>\n<\/p><\/div>\n<div class=\"sectionblock\">\n<ol class=\"ordered\">\n<li>\n<p> \t\t\t\t\t\t\tIf <strong>Task Scheduler<\/strong> is not open, start the <strong>Task Scheduler<\/strong>. For more information, see <a href=\"https:\/\/technet.microsoft.com\/library\/cc721931.aspx\">Start Task Scheduler<\/a>.<\/p>\n<\/li>\n<li>\n<p> \t\t\t\t\t\t\tExpand the console tree and navigate to <strong>Task Scheduler Library\\Microsoft\\Windows\\Servicing\\StartComponentCleanup<\/strong>.<\/p>\n<\/li>\n<li>\n<p> \t\t\t\t\t\t\tUnder <strong>Selected Item<\/strong>, click <strong>Run<\/strong><\/p>\n<\/li>\n<\/ol><\/div>\n<\/p><\/div>\n<div class=\"alert\">\n<table>\n<tbody>\n<tr>\n<th align=\"left\"> \t\t\t\t\t\t\t<img decoding=\"async\" alt=\"note\" class=\"cl_IC101471\" id=\"note\" src=\"https:\/\/i-msdn.sec.s-msft.com\/areas\/global\/content\/clear.gif\" title=\"note\" \/>Note<\/th>\n<\/tr>\n<tr>\n<td> \t\t\t\t\t\t\tThe StartComponentCleanup task can also be started from the command line:<strong>schtasks.exe \/Run \/TN &quot;\\Microsoft\\Windows\\Servicing\\StartComponentCleanup&quot;<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \t\t\t\t&nbsp;<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<h2 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t&nbsp;<\/h2>\n<div>\n<h2 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t<a class=\"LW_CollapsibleArea_TitleAhref\" role=\"button\" title=\"Click to collapse. Double-click to collapse all.\"><span class=\"LW_CollapsibleArea_Title\">Dism.exe<\/span><\/a><\/h2>\n<\/p><\/div>\n<div class=\"sectionblock\">\n<p> \t\t\tDeployment Image Servicing and Management (DISM) is a command-line tool that allows you to install, uninstall, configure, and update Windows features, packages, drivers, and international settings. The <strong>\/Cleanup-Image<\/strong> parameter of <strong>Dism.exe<\/strong> provides advanced users more options to further reduce the size of the WinSxS folder. For more information, see <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/hh825265.aspx\">DISM Operating System Package Servicing Command-Line Options<\/a>.<\/p>\n<div>\n<h3 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t\t&nbsp;<\/h3>\n<div>\n<h3 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t\t\t<a class=\"LW_CollapsibleArea_TitleAhref\" role=\"button\" title=\"Click to collapse. Double-click to collapse all.\"><span class=\"LW_CollapsibleArea_Title\">Use the \/StartComponentCleanup parameter<\/span><\/a><\/h3>\n<\/p><\/div>\n<div class=\"sectionblock\">\n<ol class=\"ordered\">\n<li>\n<p> \t\t\t\t\t\t\tUsing the <strong>\/StartComponentCleanup<\/strong> parameter of Dism.exe on a running version of Windows 8.1 gives you similar results to running the <strong>StartComponentCleanup<\/strong> task in <strong>Task Scheduler<\/strong>, except previous versions of updated components will be immediately deleted (without a 30 day grace period) and you will not have a 1-hour timeout limitation.<\/p>\n<p> \t\t\t\t\t\t\tFrom an elevated command prompt, type the following:<\/p>\n<div class=\"codeSnippetContainer\" id=\"code-snippet-1\">\n<div class=\"codeSnippetContainerTabs\"> \t\t\t\t\t\t\t\t&nbsp;<\/div>\n<div class=\"codeSnippetContainerCodeContainer\">\n<div class=\"codeSnippetToolBar\">\n<div class=\"codeSnippetToolBarText\"> \t\t\t\t\t\t\t\t\t\t&nbsp;<\/div>\n<\/p><\/div>\n<div class=\"codeSnippetContainerCode\" dir=\"ltr\" id=\"CodeSnippetContainerCode_115fc24d-7511-46f1-9da1-72c8cf6ccb2e\">\n<div style=\"color:Black;\">\n<pre>Dism.exe \/online \/Cleanup-Image \/StartComponentCleanup <\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<\/ol><\/div>\n<\/p><\/div>\n<div>\n<h3 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t\t&nbsp;<\/h3>\n<div>\n<h3 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t\t\t<a class=\"LW_CollapsibleArea_TitleAhref\" role=\"button\" title=\"Click to collapse. Double-click to collapse all.\"><span class=\"LW_CollapsibleArea_Title\">Use the \/ResetBase switch with the \/StartComponentCleanup parameter<\/span><\/a><\/h3>\n<\/p><\/div>\n<div class=\"sectionblock\">\n<ol class=\"ordered\">\n<li>\n<p> \t\t\t\t\t\t\tUsing the <strong>\/ResetBase<\/strong> switch with the <strong>\/StartComponentCleanup<\/strong> parameter of DISM.exe on a running version of Windows 8.1 removes all superseded versions of every component in the component store.<\/p>\n<p> \t\t\t\t\t\t\tFrom an elevated command prompt, type the following:<\/p>\n<div class=\"codeSnippetContainer\" id=\"code-snippet-2\">\n<div class=\"codeSnippetContainerTabs\"> \t\t\t\t\t\t\t\t&nbsp;<\/div>\n<div class=\"codeSnippetContainerCodeContainer\">\n<div class=\"codeSnippetToolBar\">\n<div class=\"codeSnippetToolBarText\"> \t\t\t\t\t\t\t\t\t\t&nbsp;<\/div>\n<\/p><\/div>\n<div class=\"codeSnippetContainerCode\" dir=\"ltr\" id=\"CodeSnippetContainerCode_b5ad5901-4978-4ad6-a17a-bf7b4a162de2\">\n<div style=\"color:Black;\">\n<pre>Dism.exe \/online \/Cleanup-Image \/StartComponentCleanup \/ResetBase <\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"alert\">\n<table>\n<tbody>\n<tr>\n<th align=\"left\"> \t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" alt=\"Warning\" id=\"Warning\" src=\"https:\/\/i-msdn.sec.s-msft.com\/dynimg\/IC174466.gif\" title=\"Warning\" \/>Warning<\/th>\n<\/tr>\n<tr>\n<td> \t\t\t\t\t\t\t\t\t\t\tAll existing service packs and updates cannot be uninstalled after this command is completed. This will not block the uninstallation of future service packs or updates.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \t\t\t\t\t\t\t\t&nbsp;<\/p>\n<\/p><\/div>\n<\/li>\n<\/ol><\/div>\n<\/p><\/div>\n<div>\n<h3 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t\t&nbsp;<\/h3>\n<div>\n<h3 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t\t\t<a class=\"LW_CollapsibleArea_TitleAhref\" role=\"button\" title=\"Click to collapse. Double-click to collapse all.\"><span class=\"LW_CollapsibleArea_Title\">Use the \/SPSuperseded parameter<\/span><\/a><\/h3>\n<\/p><\/div>\n<div class=\"sectionblock\">\n<ol class=\"ordered\">\n<li>\n<p> \t\t\t\t\t\t\tTo reduce the amount of space used by a Service Pack, use the <strong>\/SPSuperseded<\/strong> parameter of Dism.exe on a running version of Windows 8.1 to remove any backup components needed for uninstallation of the service pack. A service pack is a collection of cumulative updates for a particular release of Windows.<\/p>\n<p> \t\t\t\t\t\t\tFrom an elevated command prompt, type the following:<\/p>\n<div class=\"codeSnippetContainer\" id=\"code-snippet-3\">\n<div class=\"codeSnippetContainerTabs\"> \t\t\t\t\t\t\t\t&nbsp;<\/div>\n<div class=\"codeSnippetContainerCodeContainer\">\n<div class=\"codeSnippetToolBar\">\n<div class=\"codeSnippetToolBarText\"> \t\t\t\t\t\t\t\t\t\t&nbsp;<\/div>\n<\/p><\/div>\n<div class=\"codeSnippetContainerCode\" dir=\"ltr\" id=\"CodeSnippetContainerCode_982bedba-1603-47ce-a228-65943efa6513\">\n<div style=\"color:Black;\">\n<pre>Dism.exe \/online \/Cleanup-Image \/SPSuperseded <\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"alert\">\n<table>\n<tbody>\n<tr>\n<th align=\"left\"> \t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" alt=\"Warning\" id=\"Warning\" src=\"https:\/\/i-msdn.sec.s-msft.com\/dynimg\/IC174466.gif\" title=\"Warning\" \/>Warning<\/th>\n<\/tr>\n<tr>\n<td> \t\t\t\t\t\t\t\t\t\t\tThe service pack cannot be uninstalled after this command is completed.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \t\t\t\t\t\t\t\t&nbsp;<\/p>\n<\/p><\/div>\n<\/li>\n<\/ol><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<h2 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t&nbsp;<\/h2>\n<div>\n<h2 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t<a class=\"LW_CollapsibleArea_TitleAhref\" role=\"button\" title=\"Click to collapse. Double-click to collapse all.\"><span class=\"LW_CollapsibleArea_Title\">Disk Cleanup<\/span><\/a><\/h2>\n<\/p><\/div>\n<div class=\"sectionblock\">\n<p> \t\t\tYou can use Disk Cleanup to reduce the number of unnecessary files on your drives, which can help your PC run faster. It can delete temporary files and system files, empty the Recycle Bin, and remove a variety of other items that you might no longer need. The option to cleanup updates helps reduce the size of the component store.<\/p>\n<div>\n<h3 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t\t&nbsp;<\/h3>\n<div>\n<h3 class=\"LW_CollapsibleArea_TitleDiv\"> \t\t\t\t\t<a class=\"LW_CollapsibleArea_TitleAhref\" role=\"button\" title=\"Click to collapse. Double-click to collapse all.\"><span class=\"LW_CollapsibleArea_Title\">Run Disk Cleanup to delete system files<\/span><\/a><\/h3>\n<\/p><\/div>\n<div class=\"sectionblock\">\n<ol class=\"ordered\">\n<li>\n<p> \t\t\t\t\t\t\tTo delete system files run the steps as provided in <a href=\"http:\/\/windows.microsoft.com\/en-us\/windows-8\/delete-files-disk-cleanup\">Delete files using Disk Cleanup<\/a>.<\/p>\n<\/li>\n<\/ol><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Source: MSDN Lybrary &#8211; Clean Up the WinSxS Folder Updated: October 20, 2013 Applies To: Windows 8.1, Windows Server 2012 R2 One commonly asked question is can I delete the WinSxS folder to regain some disk space? The short answer is no. However, there are ways to reduce the size of the WinSxS folder. For&#8230;<\/p>\n","protected":false},"author":1,"featured_media":256,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-257","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=257"}],"version-history":[{"count":1,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/257\/revisions"}],"predecessor-version":[{"id":383,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/257\/revisions\/383"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/media\/256"}],"wp:attachment":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}