Home >Computer Tutorials >Troubleshooting >How to obtain trustedinstaller permissions in Win10

How to obtain trustedinstaller permissions in Win10

PHPz
PHPzforward
2024-01-11 20:39:281896browse

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

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".

How to obtain trustedinstaller permissions in Win10

How to obtain trustedinstaller permissions in Win10

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

How to obtain trustedinstaller permissions in Win10

3. After saving "Ctrl S", change its suffix extension to "reg".

How to obtain trustedinstaller permissions in Win10

4. Click "Yes" in the pop-up prompt window.

How to obtain trustedinstaller permissions in Win10

5. Finally, double-click "trustedinstaller.reg", and a prompt window will pop up indicating that it has been successfully added to the registry.

How to obtain trustedinstaller permissions in Win10

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!

Statement:
This article is reproduced at:dafanshu.com. If there is any infringement, please contact admin@php.cn delete