Clean up Windows.old after 25H2 deployment
I'm looking for a way to script the removal of the Windows.old directory to free up space on systems that have recently had 25H2 installed. I can use cleanmgr but I can't automate it to remove old Windows installations. Not that I can find anyway. I've already tried some scripting combining DISM, takedown, icalcs, and remove-item but that ends up just erroring out and can't complete the removal because of Windows junction loops. There must be a way to automate this so I don't need to log in to hundreds of systems. Any ideas out there or am I stuck doing this manually? submitted by /u/DefiantPenguin [link] [comments]