Open Local Group Policy Editor in Windows (okay even in personal NOT in pro) with .bat -- batch

1 篇文章 0 订阅
1 篇文章 0 订阅

TODO

In this article, I will teach you how to:

Open Local Group Policy Editor

In Windows Pro 

It is simple in Windows pro (unless Windows 10 or 11), you just have to

Step 1: 

Click the shortcut Windows + R to open the Run shell (what is run shell? see my demo video). 

Step 2:

Then search gpedit.msc .

Type gpedit.msc in search bar, and click ok.

In Windows Personal

To do this in the Window personal version, you have to list the packages by running the following batch file with Administrator privilege (in Batch file section).

Step 1:

Type these commands and store it into a batch file (shown in the Batch file section).

Then execute it with Administrator privileges.

Step 2:

Follow the steps on the above section. (steps are in In Window Pro section.)

NOTICE

Notice that

The batch file must be executed with Administrator privilege, otherwise, it will fail.

Then after executing the batch file, it will generate a text file (default named List.txt).

It can't be deleted before the steps finished, otherwise, it may fail in consecutive steps (here, is step 2).
Don't execute step 2 until step 1 completes. 

(i.e. You must wait for the batch files completes running, then execute the step 2.)

Batch file

@echo off
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b %SystemRoot%\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:"%SystemRoot%\servicing\Packages\%%i"
pause

Demo

On YT video,

https://youtu.be/UhY47vgk3eI

Additional Reference

讓Windows 10 Home 家用版 新增支援 gpedit.msc 本機群組原則編輯器 | 老貓測3C (iqmore.tw)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值