Registry tweaks from Win7 that no longer work in 10


  1. Posts : 102
    Windows 10 Pro
       #1

    Registry tweaks from Win7 that no longer work in 10


    I have somewhat automated installation process of Windows 7 that works really well, but parts of it don't work in Windows 10. I could use some help.
    Problem1:
    At some point during messing around with mounted installation image, I apply various reg tweaks, specifically new entries in the context menu of My Computer (This PC in Win10??).
    Well, that doesn't work at all in the new version. I can't even import that reg file, cmd yells out some error.
    Would anyone know what the correct registry hive and keys are?

    This is how I have it for Win7:
    Code:
    ;My Computer context menu
    ;Add Services
    [HKEY_LOCAL_MACHINE\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services]
    "Icon"="filemgmt.dll,-236"
    "Position"="Top"
    [HKEY_LOCAL_MACHINE\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services\command]
    @="mmc.exe /s services.msc"
    
    ;Add Registry Editor
    [HKEY_LOCAL_MACHINE\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Registry Editor]
    "Icon"="regedit.exe"
    "Position"="Top"
    [HKEY_LOCAL_MACHINE\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Registry Editor\command]
    @="regedit.exe"
    
    ;Add Event viewer
    [HKEY_LOCAL_MACHINE\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Event Viewer]
    "Icon"="eventvwr.exe"
    "Position"="Top"
    [HKEY_LOCAL_MACHINE\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Event viewer\command]
    @="eventvwr.exe"
    
    ;Adds Device Manager
    [HKEY_LOCAL_MACHINE\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Device Manager]
    "Icon"="shell32.dll,-13"
    "Position"="Top"
    [HKEY_LOCAL_MACHINE\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Device Manager\command]
    @="mmc.exe /s devmgmt.msc"
    
    ;Adds Add/Remove to right click of MY Computer
    [HKEY_LOCAL_MACHINE\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs]
    "Icon"="imageres.dll,-161"
    "Position"="Top"
    [HKEY_LOCAL_MACHINE\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs\command]
    @="control.exe appwiz.cpl"
      My Computer


  2. Posts : 102
    Windows 10 Pro
    Thread Starter
       #2

    Took me almost three hours, but I managed to figure it out.
    This particular part of imported registry don't have the same permissions as that from Windows 7 image, which is why I couldn't apply the tweaks. I had to change the owner from TrustedInstaller to Administrators.
    Also, SetACL be praised. Such an old and yet so awesome program.


    I would still like to know whether there isn't "more proper" way of doing this though (I don't know, the commands I am using and so on).
      My Computer


  3. Posts : 102
    Windows 10 Pro
    Thread Starter
       #3

    Taking ownership of registry keys


    I am having a problem with SetACL. I figured out how to take ownership and change permissions of a key, BUT I have just noticed it doesn't change the owner of any subkeys that might be there.
    This is what I'm doing
    setacl -on "HKLM\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}" -ot reg -actn setowner -ownr "n:administrators"
    setacl -on "HKLM\WIM_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}" -ot reg -actn ace -ace "n:administrators;p:full"

    Would anyone know how to do it for the entire tree?
      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 10:56.
Find Us




Windows 10 Forums