Home > System Tutorial > Windows Series > How to obtain Trustedinstaller permissions in Win11_How to obtain Trustedinstaller permissions in Win11

How to obtain Trustedinstaller permissions in Win11_How to obtain Trustedinstaller permissions in Win11

王林
Release: 2024-05-06 16:37:11
forward
1084 people have browsed it

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.

How to obtain Trustedinstaller permissions in Win11_How to obtain Trustedinstaller permissions in Win11

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):

How to obtain Trustedinstaller permissions in Win11_How to obtain Trustedinstaller permissions in Win11

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:

How to obtain Trustedinstaller permissions in Win11_How to obtain Trustedinstaller permissions in Win11

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:

How to obtain Trustedinstaller permissions in Win11_How to obtain Trustedinstaller permissions in Win11

Next, we import the NtObjectManager module, we enter:

Import-Module NtObjectManager

and press Enter. At this point, our preliminary preparation work is over:

How to obtain Trustedinstaller permissions in Win11_How to obtain Trustedinstaller permissions in Win11

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.

How to obtain Trustedinstaller permissions in Win11_How to obtain Trustedinstaller permissions in Win11

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

:

How to obtain Trustedinstaller permissions in Win11_How to obtain Trustedinstaller permissions in Win11

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!

Related labels:
source:zol.com.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template