当前位置:网站首页>记录开发过程中无法使用管理员身份修改系统文件问题
记录开发过程中无法使用管理员身份修改系统文件问题
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 does the real name free domain name mean?
- Go项目目录结构介绍
- 大学刚毕业不知道做什么工作怎么办?
- Class template case - encapsulation of array classes
- [solved] failed! Error: Unknown error 1130
- How crazy are young people in sideline industry: 3000 monthly salary and 3W sideline income
- halcon:读取摄像头并二值化
- Jingwei Hengrun won the 10ppm quality award of paccar group again
- B站首个UP主付费观看视频还是来了!价格“劝退”网友
- [Hot100]10. Regular Expression Matching
猜你喜欢

The class imported by idea import clearly exists, but it is red?

Starting MySQL ERROR! Couldn‘t find MySQL server (/usr/local/mysql/bin/mysqld_safe)

QT generate random number qrandomgenerator

Raspberry pie trivial configuration

1285_ Expand macros defined by AUTOSAR functions and variables with scripts to improve readability

Class templates and friends

1285_把AUTOSAR函数以及变量等定义的宏用脚本展开以提高可读性

All errors reported by NPM

【docsify基本使用】

Realization of dissolve effect in unity and its principle analysis
随机推荐
Running lantern effect JS text rotation effect realization
2021-07-02
已解决:initialize specified but the data directory has files in it. Aborting
Swiftui creates a beautiful custom press feedback button
Cluster distributed
将本地电脑文件复制到虚拟机系统中详细方法
Linux server installation redis
1285_把AUTOSAR函数以及变量等定义的宏用脚本展开以提高可读性
Installation du serveur linux redis
[semidrive source code analysis] [x9 chip startup process] 33 - Analysis of related concepts of display module
Starting MySQL ERROR! Couldn‘t find MySQL server (/usr/local/mysql/bin/mysqld_safe)
[Hot100]10. Regular Expression Matching
Stm32g0 and FreeRTOS learning summary
解决:div获取不到键盘事件
grep命令用法
Egret P2 pit encountered by physical engine (1)
All errors reported by NPM
QT elementary notes
Win10 step pit - power on 0xc0000225
Binary tree traversal