Control Panel - Add or Remove from Navigation Pane

Page 2 of 5 FirstFirst 1234 ... LastLast

  1. Posts : 13
    Windows 7 Ultimate x32
       #10

    Well though

    Thank you
      My Computer


  2. Posts : 72,041
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #11

    You're most welcome. :)
      My Computer


  3. Posts : 13
    Windows 7 Ultimate x32
       #12

    Hi Brink,

    Sorry for bothering you again.

    I've added that registry to my tweaks registery file MyTweaks.bat (launching MyTweaks.reg). When MyTweaks.bat file is launched by Autounattend.xml (SynchronousCommand).

    I noticed that ControlPanel registry is not applied.
    1) Is there a command "Run as Administrator" (.bat or .cmd) to force that registry to be applied?

    2) As other few registries are not applied too, allthoug they were tested working.
    Do you think if I launch that MyTweaks.bat file as RunOnce/RunOnceEx all the registries will be applied?
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\MyTweaks]
    "MyTweaks"="c:\Windows\Setup\scripts\MyTweaks.bat"
    Regards
      My Computer


  4. Posts : 2,177
    Windows 8.1 Pro x64
       #13

    coucou said:
    Hi Brink,

    Sorry for bothering you again.

    I've added that registry to my tweaks registery file MyTweaks.bat (launching MyTweaks.reg). When MyTweaks.bat file is launched by Autounattend.xml (SynchronousCommand).

    I noticed that ControlPanel registry is not applied.
    1) Is there a command "Run as Administrator" (.bat or .cmd) to force that registry to be applied?

    2) As other few registries are not applied too, allthoug they were tested working.
    Do you think if I launch that MyTweaks.bat file as RunOnce/RunOnceEx all the registries will be applied?
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\MyTweaks]
    "MyTweaks"="c:\Windows\Setup\scripts\MyTweaks.bat"
    Regards
    Does it help if you run the bat file from an elevated command prompt?

    Elevated Command Prompt

    Elevated Command Prompt Shortcut

    Regards,
    JDobbsy1987
      My Computer


  5. Posts : 72,041
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #14

    coucou said:
    Hi Brink,

    Sorry for bothering you again.

    I've added that registry to my tweaks registery file MyTweaks.bat (launching MyTweaks.reg). When MyTweaks.bat file is launched by Autounattend.xml (SynchronousCommand).

    I noticed that ControlPanel registry is not applied.
    1) Is there a command "Run as Administrator" (.bat or .cmd) to force that registry to be applied?

    2) As other few registries are not applied too, allthoug they were tested working.
    Do you think if I launch that MyTweaks.bat file as RunOnce/RunOnceEx all the registries will be applied?
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\MyTweaks]
    "MyTweaks"="c:\Windows\Setup\scripts\MyTweaks.bat"
    Regards

    Coucou,

    You would just need to remove that one line below from your MyTweaks.reg file. If you like, reupload it, and I'll remove it for you, then upload the modified version back for you.

    Code:
     
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{21EC2020-3AEA-1069-A2DD-08002B30309D}]
      My Computer


  6. Posts : 13
    Windows 7 Ultimate x32
       #15

    TNX JDobbsy1987 and Brink for yr reply.
    Maybe I didn't express my self clearly.
    Here bellow MyTweaks.bat. What to add/modify to make it elevated runnig
    Code:
     
    @ECHO OFF
    ECHO.
    REGEDIT /S "%systemroot%\Setup\Scripts\MyTweaks.reg"
    EXIT
    The following reg is not concerned
    Code:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{21EC2020-3AEA-1069-A2DD-08002B30309D}]
    Here 2 regs among others to be Run as Admin
    Code:
     
    ; Remove Control Panel from the Windows 7 Explorer Navigation Panel
    [HKEY_CLASSES_ROOT\CLSID\{26EE0668-A00A-44D7-9371-BEB064C98683}\ShellFolder]
    "Attributes"=dword:a0900004
    ;--------------------------------------------------------------------------------
    ; Remove Favorites from the Windows 7 Explorer Navigation Panel
    [HKEY_CLASSES_ROOT\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder]
    "Attributes"=dword:a9400100
    Regards
      My Computer


  7. Posts : 72,041
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #16

    Coucou,

    You should go ahead and post this issue with getting the BAT file to run elevated automatically in a new thread since it's no longer on topic with the tutorial. This way you will be able to get more help with it there. :)
      My Computer


  8. Posts : 13
    Windows 7 Ultimate x32
       #17

    Hi Brink,

    I posted a new thread HERE. I got a success runing MyTweaks.reg elevated, but still the following registries are NOT applied.
    Code:
    ; Remove Control Panel from the Windows 7 Explorer Navigation Panel
    [HKEY_CLASSES_ROOT\CLSID\{26EE0668-A00A-44D7-9371-BEB064C98683}\ShellFolder]
    "Attributes"=dword:a0900004
    ;--------------------------------------------------------------------------------
    ; Remove Favorites from the Windows 7 Explorer Navigation Panel
    [HKEY_CLASSES_ROOT\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder]
    "Attributes"=dword:a9400100
    On reflection, I noticed that the problem is NOT (or not only) run elevate. It's the Permissions for Administrators group Full Control box not cheked Allow (step 5).
    Is there any how to do that automatically?

    Regards
    Last edited by coucou; 27 May 2011 at 05:40.
      My Computer


  9. Posts : 13
    Windows 7 Ultimate x32
       #18

    Finalyy I got it

    I've downloaded SetAcl HERE

    I got success with the bellow cmd
    setacl.cmd
    Code:
    setacl.exe -on "HKCR\CLSID\{26EE0668-A00A-44D7-9371-BEB064C98683}" -ot reg -rec yes -actn setowner -ownr "n:Administrateurs" 
    setacl.exe -on "HKCR\CLSID\{26EE0668-A00A-44D7-9371-BEB064C98683}" -ot reg -rec yes -actn ace -ace "n:Administrateurs;p:full" 
     
    setacl.exe -on "HKCR\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}" -ot reg -rec yes -actn setowner -ownr "n:Administrateurs" 
    setacl.exe -on "HKCR\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}" -ot reg -rec yes -actn ace -ace "n:Administrateurs;p:full"
    As my system is french i had to type "Administrateurs" instead of "Administrators"

    Regards
      My Computer


  10. Posts : 72,041
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #19

    That's great news Coucou. Those pesky language differences struck again.
      My Computer


 
Page 2 of 5 FirstFirst 1234 ... LastLast

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

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