当前位置:网站首页>记录开发过程中无法使用管理员身份修改系统文件问题
记录开发过程中无法使用管理员身份修改系统文件问题
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
这样子就可以修改系统文件了~
边栏推荐
猜你喜欢
[datawhale team learning] task02: mathematical operation, string and text, list
Out of class implementation of member function of class template
How to determine the size of the platform byte order?
QT generate random number qrandomgenerator
Class templates and friends
Stm32g0 porting FreeRTOS
[resolved] MySQL exception: error 1045 (28000): unknown error 1045, forgetting the initial password
28 rounds of interviews with 10 companies in two and a half years
The first up Master of station B paid to watch the video still came! Price "Persuading" netizens
I graduated this year, but I don't know what I want to do
随机推荐
Out of class implementation of member function of class template
【docsify基本使用】
Develop common dependency Libraries
vs2019和sql
踩坑记录:supervisor 日志返回信息:redis扩展未安装
Google Earth engine (GEE) - Murray global tidal wetland change V1 (1999-2019) data set
Ad usage notes
Four great happenings on earth
I graduated this year, but I don't know what I want to do
Browser downloads files as attachments
Xshell传输文件
Vs2019 and SQL
QT common macro definitions
Stm32g0 Tim interrupt use
Go语言指针介绍
Idea shortcut key
【最全】linux服务器上安装Mysql
Jingwei Hengrun won the 10ppm quality award of paccar group again
2022年6月29日--使用C#迈出第一步--使用 C# 中的“if”、“else”和“else if”语句向代码添加决策逻辑
Write about your feelings about love and express your emotions