How to Delete the "Windows.old" Folder in Windows 8 (PowerShell)

This PowerShell script shows how to delete the "Windows.old" folder in Windows 8.

 
 
 
 
 
5 Star
(5)
3,817 times
Add to favorites
Storage
3/20/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Windows 8.1 compatibility?
    3 Posts | Last post December 07, 2017
    • Would this script work on Windows 8.1, if I was to upgrade from Windows 8?
    • Yeah, it works on Windows 8.1.
    • For me, This script works well! I have win 10. Thanks to the script Team.
  • Windows 10 Redstone Compatiblity?
    2 Posts | Last post November 13, 2017
    • I just tried this on a Windows 10 machine and it didn't work.  Is this compatible?
    • I know this is a late reply but it may help others.
      
      The script uses the environmental variable HOMEDRIVE. This doesn't always resolve to the local disk. The variable used should have been SYSTEMDRIVE, change this on line one of the script.