Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Control Panel - Add or Remove from Navigation Pane

16 Dec 2009   #9
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 
Control Panel - Add or Remove from Navigation Pane

How to Add or Remove Control Panel from Navigation Pane in Windows 7


...

My System SpecsSystem Spec
24 May 2011   #10
coucou

Windows 7 Ultimate x32
 
 

Well though

Thank you

My System SpecsSystem Spec
24 May 2011   #11
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're most welcome.
My System SpecsSystem Spec
26 May 2011   #12
coucou

Windows 7 Ultimate x32
 
 

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 System SpecsSystem Spec
26 May 2011   #13
JDobbsy1987

Windows 8.1 Pro x64
 
 

Quote   Quote: Originally Posted by coucou View Post
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 System SpecsSystem Spec
26 May 2011   #14
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Quote   Quote: Originally Posted by coucou View Post
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 System SpecsSystem Spec
26 May 2011   #15
coucou

Windows 7 Ultimate x32
 
 

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 System SpecsSystem Spec
26 May 2011   #16
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 System SpecsSystem Spec
27 May 2011   #17
coucou

Windows 7 Ultimate x32
 
 

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
My System SpecsSystem Spec
27 May 2011   #18
coucou

Windows 7 Ultimate x32
 
 

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 System SpecsSystem Spec
27 May 2011   #19
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

That's great news Coucou. Those pesky language differences struck again.
My System SpecsSystem Spec
Comment

 Control Panel - Add or Remove from Navigation Pane





Tutorial Tools



Similar help and support threads for2: Control Panel - Add or Remove from Navigation Pane
Windows 7 Tutorial Category
Favorites - Add or Remove from Navigation Pane Tutorials
Homegroup - Add or Remove from Navigation Pane Tutorials
Computer - Add or Remove from Navigation Pane Tutorials
Recycle Bin - Add or Remove from Navigation Pane Tutorials
Control Panel - Rename in Windows 7 Navigation Pane Tutorials
Remove things in Navigation pane Customization
Remove WMP12 Navigation Pane> General Discussion

Our Sites

Site Links

About Us

Find 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 03:12 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33