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

王林
发布: 2024-05-06 16:37:11
转载
2432人浏览过

解决“获取trustedinstaller权限”的难题,php小编新一为大家带来详细指导。此问题常见于尝试访问或修改受系统保护的文件时。为了帮助您轻松获取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

码哩写作
码哩写作

最懂作者的AI辅助创作工具

码哩写作 91
查看详情 码哩写作

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

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权限方法的详细内容,更多请关注php中文网其它相关文章!

相关标签:
最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:zol网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号