How to delete Windows.old folder in win10 system

  
1. First, let's go back to the traditional desktop location of the win10 system. After that, we will find a blank space on the desktop, click the right mouse button, then select New - Notepad document, and then copy the following code:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shellrunas]
@=“Get TrustedInstaller Permissions
[HKEY_CLASSES_ROOT*shellrunascommand]
@=“cmd.exe /c takeown /f ”%1“ && icacls ”%1“ /grant administrators:F”
“IsolatedCommand”=“cmd.exe /c takeown /f ”%1“ &&& icacls ”%1“ /grant administrators: F & rdquo;
[HKEY_CLASSES_ROOTDirectoryshellrunas]
@ = & ldquo; get TrustedInstaller rights & rdquo;
& ldquo; NoWorkingDirectory & rdquo; = & ldquo; & rdquo;
[HKEY_CLASSES_ROOTDirectoryshellrunascommand]
@ = & ldquo; cmd. Exe /c takeown /f ”%1“ /r /dy && icacls ”%1“ /grant administrators:F /t”
“IsolatedCommand”=“cmd .exe /c takeown /f ”%1“ /r /dy && icacls ”%1“ /grant administrators:F /t”
After we select the file - save as, name it “Get trustedinstaller permissions.reg”.
2. After we double-click this newly created file and import it into the registry, after we right click on the folder, we will get the trustedinstaller permission option. After obtaining the permission, we can delete the folder.


Copyright © Windows knowledge All Rights Reserved