Windows when upgrading the computer to a later version creates the Windows.old folder that contains the older one as a protection measure in case something goes wrong and a system restore needs to be restored.
As we mentioned above, the Windows.old folder contains all the old files and folders installationof Windows. The folder is not saved for a very long time, and is automatically deleted by Windows.
Of course, you can use the Disk Cleanup tool to delete the folder, especially if you have limited space. If you are now trying to delete the folder manually from your File Explorer, you will notice that errors are reported that indicate that you are not entitled because the folder contains system files.
Remove the Windows.old folder manually
To do so, you should run the following commands in the cmd.exe box
Open a cmd window with admin privileges. To do it easily, press it button which has it icon of Window, and type cmd. Hold down the Shift + Ctrl keys and press Enter.
Αν σασ δυσκολεύουν τα παραπάνω, ανοίξτε το Windows menu και κάντε αναζήτηση για cmd.exe. Δεξί click πάνω στο μαύρο εικονίδιο και "Άνοιγμα ως Διαχειριστής"
The three commands
takeown / F c: \ Windows.old \ * / R / A / DY
cacls c: \ Windows.old \ *. * / T / grant administrators: F
rmdir / S / Q c: \ Windows.old
Let's look carefully at the commands to understand what they are doing:
takeown / F c: \ Windows.old \ * / R / A / DY
Takeown can be used to make the group of administrators, owner of a file or a folder.
/F c:\Windows.old\* - Αυτό καθορίζει τη θέση και τα αρχεία στα οποία θα εκτελεστεί η λειτουργία.
/R - πραγματοποιεί μια επαναληπτική λειτουργία για όλα τα αρχεία που βρίσκονται στο φάκελο Windows.old
/A - δίνει την ιδιοκτησία στην ομάδα Administrators.
/D Y - απαντάει την ερώτηση επιβεβαίωσης όταν ο τρέχων user δεν έχει την άδεια του "List Folder".
cacls c: \ Windows.old \ *. * / T / grant administrators: F
This command displays or modifies DACL files (discretionary access control list).
c:\Windows.old\*.* - Τα αρχεία στα οποία θέλετε να εκτελεστεί η λειτουργία.
/t - Αλλάζει το DACL των αρχείων στον επιλεγμένο φάκελο και σε όλους τους υποφακέλους.
/grant administrators:f - Παρέχει πλήρη δικαιώματα πρόσβασης στην ομάδα διαχειριστών (Το F σημαίνει πλήρη ή Full)
rmdir / S / Q c: \ Windows.old
The command deletes the folder
/S - Αυτή η παράμετρος επιτρέπει την διαγραφή στον καθορισμένο φάκελο, όλους τους υποφακέλους και τα αρχεία τους.
/Q - εκτελεί το πρόγραμμα σε ήσυχη λειτουργία χωρίς προτροπές επιβεβαίωσης.
c:\Windows.old - καθορίζει τον φάκελο που θα διαγραφεί.