电脑上找不到Gpeditmsc文件怎么办?电脑上找不到gGpeditmsc文件的解决方法
时间:2023-04-16 11:23:31
我们在刚开始使用电脑工作学习的时候,可能会不小心误删了系统文件,这样会导致电脑出问题,甚至开不了机,那么该怎么解决电脑找不到Gpeditmsc文件呢?不会的小伙伴请看小编是怎么操作的吧,希望这篇文章对您有帮助。
具体步骤:
1、首先同时按键盘上的WIN+R键,打开运行对话框,输入notepad打开记事本。
![电脑上找不到Gpeditmsc文件怎么办?电脑上找不到gGpeditmsc文件的解决方法](https://img.aspxhome.com/file/2023/6/a322837_0.png)
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
说明:通过dir命令遍历系统盘servicing目录,寻找组策略的配置包,
找到后写入到gp.txt文件,然后通过dism命令来安装组策略包。
![电脑上找不到Gpeditmsc文件怎么办?电脑上找不到gGpeditmsc文件的解决方法](https://img.aspxhome.com/file/2023/6/a322837_1.jpg)
3、接下来点击右上角的“文件”——“另存为”。
![电脑上找不到Gpeditmsc文件怎么办?电脑上找不到gGpeditmsc文件的解决方法](https://img.aspxhome.com/file/2023/6/a322837_2.jpg)
4、在弹出的界面中选择保存路径、文件名(这里命名为gpedit.bat),
注意文件类型为“所有文件”,只有这样才能保证gpedit.bat是一个批处理文件。
![电脑上找不到Gpeditmsc文件怎么办?电脑上找不到gGpeditmsc文件的解决方法](https://img.aspxhome.com/file/2023/6/a322837_3.jpg)
5、然后在保存的gpedit.bat上右键选择“以管理员身份运行”。
上面在批处理代码介绍中已经说过了,dism命令需要管理员权限,所以批处理必须以管理员身份运行。
![电脑上找不到Gpeditmsc文件怎么办?电脑上找不到gGpeditmsc文件的解决方法](https://img.aspxhome.com/file/2023/6/a322837_4.jpg)
6、最后等待批处理执行完毕即可。
![电脑上找不到Gpeditmsc文件怎么办?电脑上找不到gGpeditmsc文件的解决方法](https://img.aspxhome.com/file/2023/6/a322837_5.jpg)
7、这时候同时按WIN+R键打开运行输入gpedit.msc,按回车键或者确定按钮即可打开组策略。
![电脑上找不到Gpeditmsc文件怎么办?电脑上找不到gGpeditmsc文件的解决方法](https://img.aspxhome.com/file/2023/6/a322837_6.jpg)
8、看一下效果,已经可以正常使用了。
![电脑上找不到Gpeditmsc文件怎么办?电脑上找不到gGpeditmsc文件的解决方法](https://img.aspxhome.com/file/2023/6/a322837_7.jpg)
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
ntbootautofix怎么用_ntbootautofix引导修复教程
![](https://img.aspxhome.com/file/2023/1/a273923_0s.png)
excel中的LOG语法及使用实例
Excel 2010如何添加数据透视图标题
鼠标dpi是什么意思
![](https://img.aspxhome.com/file/2023/2/a287963_0s.png)
Win10更新助手中的安全漏洞为黑客打开大门
![](https://img.aspxhome.com/file/2023/4/a305564_0s.jpg)
excel中怎么让数值为0的单元格不显示0?
![](https://img.aspxhome.com/file/2023/1/55181_0s.gif)
嗨格式录屏大师录制游戏视频卡怎么办?
![](https://img.aspxhome.com/file/2023/7/a331168_0s.jpg)
Excel怎么设置单独打印指定区域
![](https://img.aspxhome.com/file/2023/5/37345_0s.jpg)
如何在word中插入图表?
![](https://img.aspxhome.com/file/2023/9/33909_0s.gif)
Win10预览版或将单独更新 不局限于完整版本推送
![](https://img.aspxhome.com/file/2023/28/a248511_0s.jpg)
Win8系统电脑出厂日期怎么看?
![](https://img.aspxhome.com/file/2023/2/a285687_0s.jpg)
excel2003导入数据的方法
Win8.1不经过回收站直接删除文件的两种可行方法
![](https://img.aspxhome.com/file/2023/29/a251546_0s.jpg)
雷神911MR笔记本重装win11系统教程
![](https://img.aspxhome.com/file/2023/30/a267599_0s.png)
excel表格if条件函数如何使用
Win10如何安装AMEsim14?AMEsim14安装教程
![](https://img.aspxhome.com/file/2023/26/a225865_0s.jpg)
怎么停止Windows10强制更新
![](https://img.aspxhome.com/file/2023/2/46482_0s.png)
iphone7怎么批量删除照片?iphone7批量删除照片的方法
![](https://img.aspxhome.com/file/2023/6/a325087_0s.jpg)
全民小视频怎么绑定银行卡 全民小视频绑定银行卡的教程
![](https://img.aspxhome.com/file/2023/8/a336008_0s.png)
Word2007超链接的添加使用
![](https://img.aspxhome.com/file/2023/0/19580_0s.gif)