How to edit registry.pol file


  1. Posts : 7,126
    Windows 10 Pro 64 bit
       #1

    How to edit registry.pol file


    I discovered a Chrome extension (HP SureClick) is being installed despite uninstalling the program. The extension is loading from C:\Windows\System32\GroupPolicy\Machine\registry.pol. I found a utility to view the entry (see below). How do I edit registry.pol to remove the offending entry?

    Attachment 249999
      My Computers


  2. Posts : 4,551
    Windows 11 Pro 64-bit
       #2

    This batch script will reset Local Group Policy settings to system default settings.

    Code:
    :: This batch script created by FreeBooter
    
    :: This batch script will reset Local Group Policy settings to system default settings 
    
    @Echo Off
    
    Cls
    
    REM  --> Check for permissions
    Reg query "HKU\S-1-5-19\Environment" 
    REM --> If error flag set, we do not have admin.
    if %errorlevel% NEQ 0 (
    ECHO                 **************************************
    ECHO                  Running Admin shell... Please wait...
    ECHO                 **************************************
    
        goto UACPrompt
    ) else ( goto gotAdmin )
    
    :UACPrompt
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        set params = "%*:"=""
        echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
    
        "%temp%\getadmin.vbs"
        del "%temp%\getadmin.vbs"
        exit /B
    
    
    :gotAdmin
    
    
    
    
    Cls
    
    Rd /S /Q  %SystemRoot%\System32\GroupPolicyUsers
    
    Rd /S /Q  %SystemRoot%\System32\GroupPolicy
    
    gpupdate /force 
    
    
    Exit
    
     Cls & Mode CON  LINES=5 COLS=48 & Color 0C & Title - WARNING -
     Echo.
     Echo. 
     Echo  YOU MUST HAVE ADMINISTRATOR RIGHTS TO CONTINUE 
     Pause >Nul & Exit
      My Computer


  3. Posts : 1,187
    Windows 10 Pro
       #3

    Steve C said:
    I discovered a Chrome extension (HP SureClick) is being installed despite uninstalling the program. The extension is loading from C:\Windows\System32\GroupPolicy\Machine\registry.pol. I found a utility to view the entry (see below). How do I edit registry.pol to remove the offending entry?

    Attachment 249999
    What is this utility? Link?
      My Computers


  4. Posts : 7,126
    Windows 10 Pro 64 bit
    Thread Starter
       #4

    x509 said:
    What is this utility? Link?
    The utility is here Registry.Pol Viewer Utility - SDM Software | Configuration Experts

    I fixed my problem as follows:
    1. Navigate to C:\Windows\System32\GroupPolicy\Machine\.
    2. Rename or registry.pol
    3. Execute gpupdate /force in Powershell

    I had to reinstate the group policy setting I had made for Edge.
      My Computers


 

  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 13:38.
Find Us




Windows 10 Forums