![be89c03d8c8a21631725b0f2b292da6d.png](https://img-blog.csdnimg.cn/img_convert/be89c03d8c8a21631725b0f2b292da6d.png)
使用win10系统的时候,在运行中输入gpedit.msc,点击确定,弹出找不到的错误框,这时候该怎么办呢?
win10有很多版本,家庭版默认是不提供组策略功能,需要win10的家庭版添加组策略的功能的小伙伴们,可以参考下面的内容。
1
1
1
按下键盘上的Win+R弹出运行对话框,输入【gpedot.msc】点击确定,电脑显示Windows找不到文件。
![35a6fc9600763a5214f9c25358912043.png](https://img-blog.csdnimg.cn/img_convert/35a6fc9600763a5214f9c25358912043.png)
![492aa08e721da6840e86630da58b8a50.png](https://img-blog.csdnimg.cn/img_convert/492aa08e721da6840e86630da58b8a50.png)
1
2
1
开启win10家庭版的组策略功能,首先同时按键盘上的WIN+R键,打开运行对话框,输入notepad打开记事本
![db6497fe5a701196966f54139557b066.png](https://img-blog.csdnimg.cn/img_convert/db6497fe5a701196966f54139557b066.png)
1
3
1
然后在记事本中保存如下批处理内容。
@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') dodism /online/norestart/addpackage:"%systemroot%\servicing\Packages\%%i"
pause
说明:通过dir命令遍历系统盘servicing目录,寻找组策略的配置包,找到后写入到gp.txt文件,然后通过dism命令来安装组策略包。
![492aa08e721da6840e86630da58b8a50.png](https://img-blog.csdnimg.cn/img_convert/492aa08e721da6840e86630da58b8a50.png)
1
4
1
接下来点击右上角的[文件]——[另存为]。在弹出的界面中选择保存路径、文件名(这里命名为gpedit.bat),注意文件类型为“所有文件”,只有这样才能保证gpedit.bat是一个批处理文件。
![201285538f74d46597f4e705ec7c36ae.png](https://img-blog.csdnimg.cn/img_convert/201285538f74d46597f4e705ec7c36ae.png)
![3e65dd1d5e4a4c75c1c682caa29aeeef.png](https://img-blog.csdnimg.cn/img_convert/3e65dd1d5e4a4c75c1c682caa29aeeef.png)
1
5
1
在保存的gpedit.bat上右键选择并点击[以管理员身份运行],上面在批处理代码介绍中已经说过了,dism命令需要管理员权限,所以批处理必须以管理员身份运行。
![488387d72e6bbac2608c634ac21e883e.png](https://img-blog.csdnimg.cn/img_convert/488387d72e6bbac2608c634ac21e883e.png)
![63e660e9c98dc6e4d2afde5a624dce60.png](https://img-blog.csdnimg.cn/img_convert/63e660e9c98dc6e4d2afde5a624dce60.png)
1
6
1
最后在等待批处理执行完毕即可。这时候同时按WIN+R键打开运行输入gpedit.msc,按回车键或者确定按钮即可打开组策略。
![a7ee1a958589ef505493ff605edb7b99.png](https://img-blog.csdnimg.cn/img_convert/a7ee1a958589ef505493ff605edb7b99.png)
以上内容就是Win10家庭版添加组策略的方法,小伙伴们,你们学到了吗
![be89c03d8c8a21631725b0f2b292da6d.png](https://img-blog.csdnimg.cn/img_convert/be89c03d8c8a21631725b0f2b292da6d.png)
资源来自百度
编辑:邓思彤
审核:陈格芸 王才龙 卓小雨
![00fec2e87ef5ae77d2cd05b03c2727cf.png](https://img-blog.csdnimg.cn/img_convert/00fec2e87ef5ae77d2cd05b03c2727cf.png)