Windows.old: Delete the folder manually

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 of Windows. The folder is not saved for a very long time, and is automatically deleted by Windows.

windowsOf 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 which has it 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 - απαντάει την ερώτηση επιβεβαίωσης όταν ο τρέχων δεν έχει την άδεια του "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 - καθορίζει τον φάκελο που θα διαγραφεί.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by giorgos

George still wonders what he's doing here ...

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).