当前位置:网站首页>记录开发过程中无法使用管理员身份修改系统文件问题
记录开发过程中无法使用管理员身份修改系统文件问题
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
这样子就可以修改系统文件了~
边栏推荐
- What underlying technologies support the metauniverse?
- app闪退
- 动态内存管理
- The simulation interface does not declare an exception and throws an exception
- Resolution: div failed to get keyboard event
- 系统软件开发基础知识
- Stm32g0 and FreeRTOS learning summary
- Grep command usage
- 网络安全-单臂路由、DHCP中继和ICMP协议
- Basic knowledge of system software development
猜你喜欢
随机推荐
Linu foundation - zoning planning and use
QT wmic command obtains some hardware information
Xshell transfer file
B站首个UP主付费观看视频还是来了!价格“劝退”网友
app闪退
How to use string branches for switch case
[introduction to Expo application] v Expert recommendation letter template
【已解决】Failed! Error: Unknown error 1130
What if I don't know what to do after graduating from university?
Browser downloads files as attachments
网络安全-VLAN和Tunk方法详解
QT generate random number qrandomgenerator
Qtcreator debug code after configuring CDB debugger view variable value display card
js创建pdf文件
JS null judgment operators | and? Usage of
June 29, 2022 -- take the first step with C # -- add decision logic to the code using the "if", "else" and "else if" statements in C #
单测调用对象的私有方法
网络安全-抓包和IP包头分析
JS widget wave JS implementation of wave progress bar animation style
Linux服務器安裝Redis









