电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!
时间:2023-02-03 05:39:16
电脑找不到gpedit.msc文件怎么办?gpedit.msc是每个电脑进入本地策略编辑器的命令,但是很多用户在需要打开的时候都容易遇到找不到文件的问题,那么该怎么解决呢?下面就一起来看看吧。
电脑找不到gpedit.msc文件怎么办?
方法一
1、首先按下快捷键“win+r”打开运行,输入:notepad。
![电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!](https://img.aspxhome.com/file/2023/30/a265152_0.jpg)
2、之后可以进入记事本,输入代码:
@echo off
pushd “%~dp0”
dir /b %systemroot%\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >gp.txt
dir /b %systemroot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>gp.txt
for /f %%i in (‘findstr /i 。 gp.txt 2^>nul’) do dism /online /norestart /add-package:“%systemroot%\servicing\Packages\%%i”
pause
3、然后将其进行保存,命名为“gpedit.bat”。
![电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!](https://img.aspxhome.com/file/2023/30/a265152_1.jpg)
4、在保存的gpedit.bat记事本中右击选择“以管理员身份运行”。
![电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!](https://img.aspxhome.com/file/2023/30/a265152_2.jpg)
5、等到处理完成了之后,按下“win+r”打开运行,输入代码:gpedit.msc就好了。
![电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!](https://img.aspxhome.com/file/2023/30/a265152_3.jpg)
方法二
1、首先按下快捷键“win+r”打开运行,输入control。
![电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!](https://img.aspxhome.com/file/2023/30/a265152_4.jpg)
2、然后选择里面的“系统和安全”。
![电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!](https://img.aspxhome.com/file/2023/30/a265152_5.jpg)
3、再点击下面的“系统”。
![电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!](https://img.aspxhome.com/file/2023/30/a265152_6.jpg)
4、在系统右侧选择“高级系统设置”。
![电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!](https://img.aspxhome.com/file/2023/30/a265152_7.jpg)
5、随后点击任务栏中的“高级”。
![电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!](https://img.aspxhome.com/file/2023/30/a265152_8.jpg)
6、再去点击下面的“环境变量”。
![电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!](https://img.aspxhome.com/file/2023/30/a265152_9.jpg)
7、最后将下面环境变量下方的“path”中的变量修改为:%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32WBEM即可。
![电脑找不到gpedit.msc文件怎么办?两种方法帮你解决!](https://img.aspxhome.com/file/2023/30/a265152_10.jpg)
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何强制 iMessage 信息同步到 Mac 上?
![](https://img.aspxhome.com/file/2023/7/a196087_0s.png)
Win10怎么把所有哈希值校验算法添加到文件右键层叠菜单中?
![](https://img.aspxhome.com/file/2023/26/a225338_0s.jpg)
Excel中进行用公式快速制作乘法表的操作技巧
wps文字表格怎么插入横页面
苹果手机wps怎么改文件名-苹果手机wps修改文件名称的方法
![](https://img.aspxhome.com/file/2023/3/a301179_0s.jpg)
PixelStyle 教程「11」,如何在 PixelStyle 中使用矩形选框工具?
![](https://img.aspxhome.com/file/2023/10/a343910_0s.jpeg)
Intel官方偷跑8核心8代酷睿CPU:配合Z390送大礼?
![](https://img.aspxhome.com/file/2023/4/a303077_0s.jpg)
Win11和Win10有什么区别吗? Win11和Win10区别配置对比
![](https://img.aspxhome.com/file/2023/1/a281572_0s.png)
Excel中怎么设置打印时每页都有表头
![](https://img.aspxhome.com/file/2023/2/a153712_0s.png)
win10远程桌面怎么连接手机_win10远程桌面怎么连接手机详细教程
![](https://img.aspxhome.com/file/2023/3/a292282_0s.jpg)
电脑无法启动windows 电脑启动不了windows解决方法
![](https://img.aspxhome.com/file/2023/3/a295817_0s.jpg)
win10版本1903无法连接wifi无线网络解决方法
![](https://img.aspxhome.com/file/2023/3/a300038_0s.jpg)
IE8在登录淘宝时自动关闭或内存指令错误的原因及解决方法
![](https://img.aspxhome.com/file/2023/5/a319252_0s.jpg)
Windows10系统下如何使用crx文件?crx文件的安装方法
![](https://img.aspxhome.com/file/2023/26/a224869_0s.jpg)
excel表格如何进行角度、弧度、度分秒之间的转换?
![](https://img.aspxhome.com/file/2023/5/a142435_0s.png)
GeoGebra怎么绘制正三角形
![](https://img.aspxhome.com/file/2023/9/a341287_0s.png)
夜神模拟器怎么安装APP?夜神模拟器安装APP的方法
![](https://img.aspxhome.com/file/2023/1/a274898_0s.jpg)
Win10电脑如何删除任务栏无效图标?
![](https://img.aspxhome.com/file/2023/26/a224785_0s.jpg)
Win7 32位系统电脑不能复制粘贴右键粘贴选项是灰色的
![](https://img.aspxhome.com/file/2023/29/a254119_0s.png)
Win11操作中心打不开怎么办?Win11操作中心打不开原因及解决方法
![](https://img.aspxhome.com/file/2023/27/a237035_0s.jpg)