Home > Article > Computer Tutorials > How to obtain trustedinstaller permissions in Win10
When a friend was cleaning files on a Win10 computer, he found that some files could not be deleted, and it was prompted that permissions provided by trustedinstaller were needed to make changes to the files. So how does Win10 obtain trustedinstaller permissions? For this reason, the editor will give you a detailed introduction to the tutorial on how to obtain trustedinstaller permissions in Win10. If you are interested, come and take a look.
How to obtain trustedinstaller permissions in Win10:
1. Right-click a blank space on the desktop, select "New" a "text document", and name it "trustedinstaller.txt".
2. After double-clicking to open, copy and paste the following code into Notepad.
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 permission
NoWorkingDirectory=
[HKEY_CLASSES_ROOTDirectoryshellrunascommand]
@=cmd.exe /c takeown /f %1 / r /d y icacls %1 /grant administrators:F /t
IsolatedCommand=cmd.exe /c takeown /f %1 /r /d y icacls %1 /grant administrators:F /t
3. After saving "Ctrl S", change its suffix extension to "reg".
4. Click "Yes" in the pop-up prompt window.
5. Finally, double-click "trustedinstaller.reg", and a prompt window will pop up indicating that it has been successfully added to the registry.
The above is the detailed content of How to obtain trustedinstaller permissions in Win10. For more information, please follow other related articles on the PHP Chinese website!