If the .bat file errors from the command line with "was unexpected at this time" edit the bat file adding a second % to each of the four entries. Example %F will read %%F. If you have issues creating or saving the bat file I suggest NotePad ++ as the text editor. Once this change was made it ran fine on MS Windows 11 Home.
How to Enable the GPEdit.msc on Windows 10 and 11 Home?
Ive recently had to search for this informtion and thought I would share the answer. Sorce - Enable Group Policy Editor (gpedit.msc) on Windows 10/11 Home Edition | Windows OS Hub (woshub.com) "It is likely that, according to the Microsoft logic, the home user doesn’t need to edit the local settings through the gpedit.msc GUI. Accordingly, users of the Windows 10 home editions have to make changes through the registry editor regedit.exe`, which is not so clear and more risky since it is possible to make a mistake and break the system.
Fortunately, Windows 10 Home has the undocumented option to install the gpedit.msc editor from the Windows image packages and manifests repository (\Windows\servicing\packages).
How to Enable the GPEdit.msc on Windows 10 and 11 Home?
To install the Local Group Policy Editor in Windows 10 Home edition, open a command prompt as administrator and run two one-line commands in sequence:
FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F")FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F")
Also these commands can be used to install gpedit.msc console in Windows 11 Home.
For convenience, you can save this code to a text file gpedit-install.bat and run it as administrator. Wait a while until DISM installs the packages from the Windows 10 component store.
In my case, the ClientTools and ClientExtensions packages were installed in Windows 10 Home:
Microsoft-Windows-GroupPolicy-ClientTools-Package~…~amd64~~….mum
Microsoft-Windows-GroupPolicy-ClientTools-Package~…~amd64~en-US~….mum
Microsoft-Windows-GroupPolicy-ClientExtensions-Package~…~amd64~~….mum
Microsoft-Windows-GroupPolicy-ClientExtensions-Package~…~amd64~en-US~….mum
Now try to run the gpedit.msc console. The Local Group Policy Editor interface should open (no reboot required). The GPO editor is fully functional even in the Home edition of Windows 10 or Windows 11, and contains all the necessary policy sections that are available in the Pro/Enterprise editions."
Windows for home | Windows 10 | Settings
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
114 answers
Sort by: Newest
-
Anonymous
2023-06-04T15:43:59+00:00 -
Anonymous
2023-05-21T10:35:34+00:00 You are coolest ever
-
Anonymous
2023-05-11T14:08:02+00:00 Thank you, worked for me very simple. Open CMD - Run as Admin. Then copy paste twice. Simple!
-
ReportedAnonymous
2023-05-08T16:45:27+00:00 FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F")
FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F")Microsoft-Windows-GroupPolicy-ClientTools-Package~…~amd64~~….mum Microsoft-Windows-GroupPolicy-ClientTools-Package~…~amd64~en-US~….mum Microsoft-Windows-GroupPolicy-ClientExtensions-Package~…~amd64~~….mum Microsoft-Windows-GroupPolicy-ClientExtensions-Package~…~amd64~en-US~….mum -
Anonymous
2023-03-28T18:38:12+00:00 Thank you