Delete GPEdit from Windows 10 Home

Page 1 of 2 12 LastLast

  1. Posts : 29
    Windows 10 Home
       #1

    Delete GPEdit from Windows 10 Home


    Hello

    I followed the guide below to enable group policy editor on Windows 10 Home

    https://www.itechtics.com/easily-ena...-home-edition/

    Basically, it says to use a .bat file to get Group Policy Editor running. Now, I'd like to disable or undo what that .bat does. I've attached the .bat file to this thread. Some help would be great.

    Thanks
    Delete GPEdit from Windows 10 Home Attached Files
      My Computer


  2. Posts : 16,783
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2

    Please paste the contents of the bat into your post then select it & use the # button on the toolbar to mark it so it can be distinguished from your other words.

    The posted file has no returns to separate lines. This was not the case for others [I do not understand why]

    Denis
    Last edited by Try3; 13 Dec 2018 at 11:16.
      My Computer


  3. Posts : 31,468
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #3

    Try3 said:
    The posted file has no returns to separate lines.
    Odd, I saved the .bat file and edited it in Notepad, looked OK to me. Here it is:

    Code:
    @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 echo /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" 
    pause
      My Computers


  4. Posts : 29
    Windows 10 Home
    Thread Starter
       #4

    I've never posted a .bat file to a forum before, but thought it would turn out fine. Anyways, here is the contents of the .bat since the one someone else provided is missing dism command toward the end:
    Code:
    @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
    Maybe there is a way to disable or undo what this .bat does without using another batch file? I think that be an easier route at the very least.
      My Computer


  5. Posts : 9,765
    Mac OS Catalina
       #5

    You just delete the batch file, then follow these directions to disable GPolicy refresh. Disable or Turn Off Group Policy Refresh while Computer is in use
      My Computer


  6. Posts : 29
    Windows 10 Home
    Thread Starter
       #6

    This will only disable refresh of group policy editor. I'm looking for a way to disable the group policy editor entirely in Windows 10 Home.
      My Computer


  7. Posts : 9,765
    Mac OS Catalina
       #7

    seskanda said:
    This will only disable refresh of group policy editor. I'm looking for a way to disable the group policy editor entirely in Windows 10 Home.
    You can either rollback or risk the registry edit. Enable/Disable Group Policy in Windows 7 from cmd or Regedit Just remember that it can cause problems with those policies you made changes to. You can also just rename gpedit.msc to something else, so that it is available in case you need it again.
      My Computer


  8. Posts : 31,468
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #8

    seskanda said:
    This will only disable refresh of group policy editor. I'm looking for a way to disable the group policy editor entirely in Windows 10 Home.

    I haven't tested this, so if you try it it's at your own risk. Make a system image with something like Macrium Reflect Free before trying. In fact, if you had made one before using that .bat you wouldn't even need to have asked this question

    As far as I can see, if you make a copy of that .bat file and change the part of the 'for ... do dism....' line saying /add-package to say /remove-package running it should undo the changes made by the original .bat.
      My Computers


  9. Posts : 29
    Windows 10 Home
    Thread Starter
       #9

    bro67 said:
    You can either rollback or risk the registry edit. Enable/Disable Group Policy in Windows 7 from cmd or Regedit Just remember that it can cause problems with those policies you made changes to. You can also just rename gpedit.msc to something else, so that it is available in case you need it again.
    This seems to be for Windows 7, I have some old Win 7 computers that will try this on to see what happens, and no need to rollback for at least one of them. Do you know if it can work on Windows 10 Home?

    Bree said:
    I haven't tested this, so if you try it it's at your own risk. Make a system image with something like Macrium Reflect Free before trying. In fact, if you had made one before using that .bat you wouldn't even need to have asked this question
    What I do is simply backup the registry fully from the Regback folder as shown in link below:

    How to restore Registry from its secret backup on Windows 10 Pureinfotech

    So I would most likely wind up asking a similar question at the end of day anyways

    Bree said:
    As far as I can see, if you make a copy of that .bat file and change the part of the 'for ... do dism....' line saying /add-package to say /remove-package running it should undo the changes made by the original .bat.
    I assumed the same thing as you, but need to know if /remove-package will not delete the directories and files inside the two folders mentioned in the .bat file above?
    Last edited by klerg; 15 Dec 2018 at 12:22.
      My Computer


  10. Posts : 16,783
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #10

    About "What I do is simply backup the registry fully"

    It is up to you but that does not establish a basis for a complete recovery in all circumstances. The Registry is not the only thing that can go wrong and it does not define all settings.
    [just for example - Indexing options are listed in the Registry but must be set through the normal UI to have effect. Merely replacing Registry entries has no effect on Indexing.]

    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:18.
Find Us




Windows 10 Forums