To solve the problem of "obtaining Trustedinstaller permissions", PHP editor Xinyi brings you detailed guidance. This problem commonly occurs when trying to access or modify files protected by the system. In order to help you easily obtain Trustedinstaller permissions, this article will introduce several effective methods step by step to guide you to solve this problem.
First, we need to download and install the modules required for the Set-NtTokenPrivilege command. We first create a new folder named [token] in the root directory of the system C drive.
Next, we run Powershell as an administrator, and then enter (where C: token is the path to the folder we just created):
Save-Module - Name NtObjectManager -Path c:token
and press Enter (you will be asked when installing for the first time, enter [Y] and press Enter):
Wait a moment to download After completion, we enter:
Install-Module -Name NtObjectManager
and press Enter to officially install. If an untrusted repository appears, enter [A] and press Enter:
Wait a moment for the installation to complete. After that, we need to allow the system to allow the use of Powershell scripts. We enter:
Set-ExecutionPolicy Unrestricted
and press Enter. Then the system will display the execution policy change, we enter]A[ and press Enter to confirm:
Next, we import the NtObjectManager module, we enter:
Import-Module NtObjectManager
and press Enter. At this point, our preliminary preparation work is over:
Officially begins
Now, we begin to officially obtain Trustedinstaller permissions. Enter in Powershell:
sc.exe start TrustedInstallerSet-NtTokenPrivilege SeDebugPrivilege$p = Get-NtProcess -Name TrustedInstaller.exe$proc = New-Win32Process cmd.exe -CreationFlags NewConsole -ParentProcess $p
and press Enter.
Next, the system will open a command prompt, which has Trustedinstaller permissions and can directly modify system files. We can test it through:
whoami /groups /fo list
:
You can see that we have obtained Trustedinstaller permissions, now we can Modified system files through some commands. If you want to make the operation more convenient, you can run tasksmgr, notepad and other applications through this CMD, and edit files in the browsing window of running new tasks and opening files. Just close it after editing.
Notice! Do not use CMD to run explorer because explorer cannot be used normally under the current user. After this, if you want to regain Trustedinstaller permissions, re-execute the following command:
sc.exe start TrustedInstallerSet-NtTokenPrivilege SeDebugPrivilege$p = Get-NtProcess -Name TrustedInstaller.exe$proc = New-Win32Process cmd .exe -CreationFlags NewConsole -ParentProcess $p
The above is the detailed content of How to obtain Trustedinstaller permissions in Win11_How to obtain Trustedinstaller permissions in Win11. For more information, please follow other related articles on the PHP Chinese website!