当前位置:网站首页>记录开发过程中无法使用管理员身份修改系统文件问题
记录开发过程中无法使用管理员身份修改系统文件问题
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
这样子就可以修改系统文件了~
边栏推荐
- 2021-07-02
- 网络安全-三层交换技术和内部网络规划
- 踩坑记录:supervisor 日志返回信息:redis扩展未安装
- [daily question] 535 Encryption and decryption of tinyurl
- Xshell传输文件
- Linux server installation redis
- Resolved: initialize specified but the data directory has files in it Aborting
- 【SemiDrive源码分析】【X9芯片启动流程】33 - Display模块 相关概念解析
- SQL Server2005中SUM函数内嵌套IF语句
- 【SemiDrive源码分析】【X9芯片启动流程】34 - RTOS侧 Display模块 sdm_display_init 显示初始化源码分析
猜你喜欢

MAX6675 usage notes
![[hot100] palindrome substring and longest palindrome substring](/img/a5/10dec640f02023c4d55cb42e6309fb.png)
[hot100] palindrome substring and longest palindrome substring

6、 Shopping ⻋ and orders

Class template case - encapsulation of array classes

Qtcreator debug code after configuring CDB debugger view variable value display card

编写并运行第一个Go语言程序
![[daily question] 535 Encryption and decryption of tinyurl](/img/73/35674cd5df3d937af0762645041421.png)
[daily question] 535 Encryption and decryption of tinyurl

QT common macro definitions

Installation du serveur linux redis
![[datawhale team learning] task02: mathematical operation, string and text, list](/img/3e/c9c984d7576a2e410da7f81a8c0aa6.jpg)
[datawhale team learning] task02: mathematical operation, string and text, list
随机推荐
IDEA import导入的类明明存在,却飘红?
[resolved] MySQL exception: error 1045 (28000): unknown error 1045, forgetting the initial password
JS create PDF file
【Hot100】11. Container with the most water
Develop common dependency Libraries
已解决:initialize specified but the data directory has files in it. Aborting
[docsify basic use]
动态内存管理
安装Go语言开发工具
Traverse map
Calculation and parameter quantity of neural network
模拟接口没声明异常抛出异常
How does the CPU recognize the code?
nRF52832 GPIO LED
MySQL encounters the problem of expression 1 of select list is not in group by claim and contains nonaggre
[semidrive source code analysis] [x9 chip startup process] 34 - RTOS side display module SDM_ display_ Init display initialization source code analysis
How to convert XML to JSON
手机开户股票开户安全吗?开户需要准备什么?
Go common commands
Go常用命令