Windows 10家庭版添加(组策略)本地安全策略

Windows 10家庭版默认是没有组策略的,不过可以通过代码来恢复,实现跟专业版一样的功能,下面是如何添加组策略的本地安全策略详细步骤:

首先创建一个文本文档,打开后复制进下面代码,将其另存为 *.bat 格式即可,如 Windows_GroupPolicy.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

原文地址:
https://blog.csdn.net/weixin_42425970/article/details/104141409

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.