Clean up Windows system directories.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 29 Dec 2017 21:36:29 +0200
changeset 2213 0ba47cfd796b
parent 2212 aec79721c8aa
child 2214 f7b3d90697ab
Clean up Windows system directories.
windows.rst
--- a/windows.rst	Tue Dec 26 00:29:56 2017 +0200
+++ b/windows.rst	Fri Dec 29 21:36:29 2017 +0200
@@ -427,11 +427,24 @@
 
   $ cmd /c assoc .mp3=AIMP.mp3
 
-Clean up Windows system directories.
-====================================
+Clean up Windows system directories
+===================================
 
 Run ``cleanmgr.exe``.
 
+Disable hibernation::
+
+  powercfg /hibernate off
+
+On Windows 10 use compaction (compressing Windows bloatware). It frees about 2 GiB::
+
+  Compact.exe /CompactOS:always
+
+Clean up WinSXS directory (from admin permission)::
+
+  DISM /online /Cleanup-Image /SpSuperseded
+  DISM /online /Cleanup-Image /StartComponentCleanup /ResetBase
+
 You can safely remove SP restore files::
 
   %Systemroot%\$NtServicePackUninstall$
@@ -442,11 +455,16 @@
   %SYSTEMDRIVE%\Documents and Settings\USER\Application Data
   %SYSTEMDRIVE%\Documents and Settings\USER\Local Settings
 
-  http://support.microsoft.com/kb/290402
-                HOW TO: Remove the Service Pack Restore Files and Folders in
-                Windows
-  http://support.microsoft.com/kb/253597
-                Automating Disk Cleanup Tool in Windows
+http://support.microsoft.com/kb/290402
+  HOW TO: Remove the Service Pack Restore Files and Folders in Windows
+http://support.microsoft.com/kb/253597
+  Automating Disk Cleanup Tool in Windows
+https://support.microsoft.com/en-us/help/17421/windows-free-up-drive-space
+  Tips to free up drive space on your PC.
+https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder
+  Clean Up the WinSxS Folder.
+https://support.microsoft.com/en-us/help/2795190/how-to-address-disk-space-issues-that-are-caused-by-a-large-windows-co
+  How to address disk space issues that are caused by a large Windows component store (WinSxS) directory.
 
 Schedule Tasks in Windows
 =========================