How to delete the Windows.old folder in win10 system?

  
Windows.old folder, in the previous Windows system, it seems that this folder does not appear, so we can not find information and troubleshooting solutions related to this folder. But after upgrading to the win10 system, this folder appeared. It is a backup of the original system. It seems that it is not very useful for the new system. Many users want to delete this folder in their win10 system, but every time they go to delete, they will be prompted without permission. So how can we get permission to delete this folder? Below, Xiaobian will give a detailed introduction. Let's go!
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, then copy the following code into it:
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”
[HKEY_CLASSES_ROOTDirectoryshellrunas]
@=“Get TrustedInstaller Permissions  “NoWorkingDirectory&rdquo ;=“”
[HKEY_CLASSES_ROOTDirectoryshellrunascommand]
@=“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 br>, we select the file - save as, and name it "to get the trustedinstaller permission.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