Clean up Windows system directories.
--- 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
=========================