![]() TreeSize Free is packaged with permission from the publisher TreeSize Free Portable is freeware for business and personal use. It's packaged in Format so it can easily integrate with the Platform. TreeSize Free lets you scan directory size and find the space hogs to free up space on your drive. Enjoy.A new version of TreeSize Free Portable has been released. It may take a little while for the command to complete but once it’s done you will be so delighted to see how much space you just brought it back to life. ![]() Then, finally to remove the whole folder. takeown /f c:\windows.old /r /d yĪnd reassign the full control rights to everyone. Once that’s done, run the following to take over ownership of the windows.old folder. Replace with the correct path for junction.exe utility and the junc.txt files, if needed. & $env:userprofile\desktop\pstools\junction.exe -d "$file" $file = $line -replace "(: JUNCTION)|(: SYMBOLIC LINK)","" foreach ($line in ::ReadLines("$env:userprofile\desktop\junc.txt")) Then, run the following script in PowerShell to remove all junction points and single symbolic links on the system. junction.exe -s -q c:\windows.old > %UserProfile%\desktop\junc.txt Thanks to this Q&A at ServerFault, here is what I did to bring back over 50 GB of storage space.įirst of all, run Sysinternals junction.exe utility to get a list of all junctions in a text file, junc.txt on my desktop. With Disk Cleanup out of the equation, manual cleanup seems to be the option left. How to clean up WinSxS folder on Windows 2008 R2 How to clean up Windows.old on Windows Server 2012 R2 Note: If you are somehow still using Windows Server 2008 R2, installing KB2852386 after enabling Desktop Experience feature makes things a lot easy to clean up right with the Disk Cleanup Utility tool. It didn’t clean up a whole lot in my case, only claimed back a little over 1 GB space. ![]() dism /online /cleanup-image /StartComponentCleanup /ResetBase Then, run the following to remove superseded and unused system files from the system and reset the base so all existing updates cannot be removed after the command is completed. dism /online /cleanup-image /AnalyzeComponentStore It has a parameter /cleanup-imagethat provides a few more advanced options to reduce the size of the WinSxS folder.įirst of all, you can run the following to analyze the component store to see what’s included in there. Rather, utilizing a command-line tool called DISM, Deployment Image Servicing Management, is way more appropriate. Because it’s associated with system installation it’s not a good idea just simply deleting the folder. Therefore, the folder could become quite big over time. WinSxS, aka Windows component store, contains all the files required for a Windows installation as well as any updates to those files within the component store. Clean up WinSxS folders on Windows Server 2012 R2 If you are facing the same challenge as I do, here are the options you can take away. You probably could enable Desktop Experience feature to bring back the Disk Cleanup Utility but it won’t guarantee to clean up these two giant folders managed by the system upgrades and updates. But, it’s not the case in Windows Server, especially the more recent versions like 2012 R2. On Windows desktop systems, both folders are easy to clean up with the built in tool Disk Cleanup Utility. A quick folder analysis using the free portable tool TreeSize revealed that both Windows.old and WinSxS folders are the ones taking most of the spaces. One of my Windows Server 2012 R2 ran out of space.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |