New
#10
Well though
Thank you
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?
RegardsCode:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\MyTweaks] "MyTweaks"="c:\Windows\Setup\scripts\MyTweaks.bat"
Does it help if you run the bat file from an elevated command prompt?
Elevated Command Prompt
Elevated Command Prompt Shortcut
Regards,
JDobbsy1987
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}]
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
The following reg is not concernedCode:@ECHO OFF ECHO. REGEDIT /S "%systemroot%\Setup\Scripts\MyTweaks.reg" EXITHere 2 regs among others to be Run as AdminCode:[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{21EC2020-3AEA-1069-A2DD-08002B30309D}]
RegardsCode:; 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
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. :)
Hi Brink,
I posted a new thread HERE. I got a success runing MyTweaks.reg elevated, but still the following registries are NOT applied.
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).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
Is there any how to do that automatically?
Regards
Last edited by coucou; 27 May 2011 at 05:40.
Finalyy I got it
I've downloaded SetAcl HERE
I got success with the bellow cmd
setacl.cmd
As my system is french i had to type "Administrateurs" instead of "Administrators"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"
Regards