登录
首页 >  文章 >  软件教程

Win11怎么获取Trustedinstaller权限_Win11获取Trustedinstaller权限方法

来源:zol

时间:2024-05-06 12:24:39 495浏览 收藏

小伙伴们对文章编程感兴趣吗?是否正在学习相关知识点?如果是,那么本文《Win11怎么获取Trustedinstaller权限_Win11获取Trustedinstaller权限方法》,就很适合你,本篇文章讲解的知识点主要包括。在之后的文章中也会多多分享相关知识点,希望对大家的知识积累有所帮助!

首先,我们需要下载并安装 Set-NtTokenPrivilege 命令所需模块,我们先在系统 C 盘根目录新建名为【token】的文件夹。

Win11怎么获取Trustedinstaller权限_Win11获取Trustedinstaller权限方法

接着,我们以管理员身份运行 Powershell,然后输入(其中 C:token,为我们刚刚新建文件夹的路径):

Save-Module -Name NtObjectManager -Path c:token

并回车(第一次安装会出现询问,输入【Y】并回车):

Win11怎么获取Trustedinstaller权限_Win11获取Trustedinstaller权限方法

稍等片刻下载完成后,我们输入:

Install-Module -Name NtObjectManager

并回车,正式安装。若出现不受信任的存储库,输入【A】并回车:

Win11怎么获取Trustedinstaller权限_Win11获取Trustedinstaller权限方法

稍等片刻,等待安装结束。结束后,我们需要让系统允许使用 Powershell 脚本,我们输入:

Set-ExecutionPolicy Unrestricted

并回车。接着系统会显示执行策略更改,我们输入】A【并回车确认:

Win11怎么获取Trustedinstaller权限_Win11获取Trustedinstaller权限方法

接着,我们导入 NtObjectManager 模块,我们输入:

Import-Module NtObjectManager

并回车。至此,我们前期准备工作结束:

Win11怎么获取Trustedinstaller权限_Win11获取Trustedinstaller权限方法

正式开始

现在,我们开始正式获得 Trustedinstaller 权限。在 Powershell 中依次输入:

sc.exe start TrustedInstallerSet-NtTokenPrivilege SeDebugPrivilege$p = Get-NtProcess -Name TrustedInstaller.exe$proc = New-Win32Process cmd.exe -CreationFlags NewConsole -ParentProcess $p

并回车。

Win11怎么获取Trustedinstaller权限_Win11获取Trustedinstaller权限方法

接下来系统会打开一个命令提示符,该命令提示符就具有 Trustedinstaller 权限,可以直接修改系统文件。我们可以通过:

whoami /groups /fo list

进行测试:

Win11怎么获取Trustedinstaller权限_Win11获取Trustedinstaller权限方法

可以看到我们已经获得 Trustedinstaller 权限了,现在就可以通过一些命令修改系统文件了。如果想要更加方便操作,可以通过此 CMD 运行 taskmgr、notepad 等应用,在运行新任务、打开文件的浏览窗口下,进行文件编辑。编辑结束后直接关闭即可。

注意!不要使用 CMD 运行 explorer,因为 explorer 无法在当前用户下正常使用。在这之后如果,想要重新获得 Trustedinstaller 权限重新执行以下命令即可:

sc.exe start TrustedInstallerSet-NtTokenPrivilege SeDebugPrivilege$p = Get-NtProcess -Name TrustedInstaller.exe$proc = New-Win32Process cmd.exe -CreationFlags NewConsole -ParentProcess $p

到这里,我们也就讲完了《Win11怎么获取Trustedinstaller权限_Win11获取Trustedinstaller权限方法》的内容了。个人认为,基础知识的学习和巩固,是为了更好的将其运用到项目中,欢迎关注golang学习网公众号,带你了解更多关于的知识点!

声明:本文转载于:zol 如有侵犯,请联系study_golang@163.com删除
相关阅读
更多>
最新阅读
更多>
课程推荐
更多>