lusir

lusir

Windows does not have group policy, install using dism

Background#

Occasionally encounter some system configurations that require Group Policy, gpedit.msc, but the Home edition of Windows does not have this package.

Solution#

  • Create a new cmd file, edit - add the following content, and run as administrator by right-clicking
    • Alternatively, you can create a new txt file, add the content, and then change the extension to cmd, which works the same way.
@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

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.