Hello again guys,
I offer a community service to assist a lot of people remotely so don't always have hands on systems I deal with. There is a problem when it comes to deleting the Windows.old folder after one has upgraded to Windows 10. I have found that using disk cleanup works to remove this folder completely if the system is BIOS based. However, if the upgraded system is UEFI based, the windows.old folder will not completely remove. It leaves two folders relating to driverstore. Using elevated command will not remove the folder either as it responds with "access denied". I have tried changing privileges on the folder which also doesn't work. The only way I have found to completely get rid of the remaining 2 folders within windows.old is to use the command line at boot which I can't do remotely.
I found a script on the net which is quite old and not being familiar with code I am somewhat confused by it and what I am supposed to enter into the script. The person who wrote the script is not as proficient as you guys when it comes to simplifying instructions for script dummies like me. Would you take a look at the attached script and clarify if it is valid and if it will work to achieve my goal of completely getting rid of the windows.old folder.
Assume in your response that the path to the windows.old folder is c:\windows.old.
Thanks for your superior work.