当前位置:网站首页>记录开发过程中无法使用管理员身份修改系统文件问题
记录开发过程中无法使用管理员身份修改系统文件问题
2022-06-30 07:15:00 【CSNZのBlog】
起初是想改动一下系统的配置文件,但是没办法修改,发现右键也没有使用管理员身份打开功能…
查了一下去看系统工具,发现也没有大家所说的管理组什么的…
后来就是,大家都说先 CMD
输入gpedit.msc
打开 本地组策略编辑器,而我并没有这个东西
再后来就找到一个方法
搞一个普通记事本,写如下代码,然后改成bat格式的文件,右键使用管理员权限执行即可。
@echo off
pushd "%~dp0"
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i"
pause
这样子就可以修改系统文件了~
边栏推荐
- How does the CPU recognize the code?
- JS create PDF file
- Embedded test process
- 踩坑记录:supervisor 日志返回信息:redis扩展未安装
- Egret engine P2 physics engine (2) - Funny physical phenomenon of small balls hitting the ground
- What if I don't know what to do after graduating from university?
- Develop common dependency Libraries
- [introduction to Expo application] v Expert recommendation letter template
- Qstring to const char*
- Install go language development tools
猜你喜欢
1285_ Expand macros defined by AUTOSAR functions and variables with scripts to improve readability
QT generate random number qrandomgenerator
[datawhale team learning] task02: mathematical operation, string and text, list
Go语言指针介绍
[most complete] install MySQL on a Linux server
Stm32g0 Tim interrupt use
Daemon and user threads
[docsify basic use]
Raspberry pie trivial configuration
The first up Master of station B paid to watch the video still came! Price "Persuading" netizens
随机推荐
[introduction to Expo application] v Expert recommendation letter template
js创建pdf文件
Determine whether the picture is in JPG picture format
IDEA import导入的类明明存在,却飘红?
Error reporting record
Traverse map
Servlet principle
First line of code (Third Edition) learning notes
嵌入式测试流程
I graduated this year, but I don't know what I want to do
JS widget wave JS implementation of wave progress bar animation style
Cluster distributed
The simulation interface does not declare an exception and throws an exception
How to set the hot deployment of idea web project
踩坑记录:supervisor 日志返回信息:redis扩展未安装
Egret P2 physical engine (1) small ball falling demo
Daemon and user threads
Connection Flood攻击原理
Utilisation de la commande grep
动态内存管理