neo Posted December 24, 2006 Share Posted December 24, 2006 I m trying to add shourcut Group policy and device manger under right click of My ComputerI m using this reg code, some1 help to do right thing, I can't understand what is wrong with me.Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgmt]@="@%windir%\\system32\\devmgr.dll,-4"[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgmt\command]@="%windir%\\system32\\mmc.exe /s %windir%\\system32\\devmgmt.msc"[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\gpedit]@="@%windir%\\system32\\gpedit.dll,-1"[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\gpedit\command]@="%windir%\\system32\\mmc.exe /s %windir%\\system32\\gpedit.msc"when i click on menu the error comes up Link to comment Share on other sites More sharing options...
neo Posted December 24, 2006 Author Share Posted December 24, 2006 some1 tell me how del the (default) or change the type of reg like REG_SZ to REG_EXPAND_SZmay be this trick helpful to overcome with this reg problem Link to comment Share on other sites More sharing options...
benners Posted December 24, 2006 Share Posted December 24, 2006 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}]@=-will delete the default value.Dunno how it should be done but I first create the key, then create a new expandable string value called @ with your command as the value, then export the key and remove the original @ value (which is the default) and use mine after removing the quotes to get something like this [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgmt]@=hex(2):40,00,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,\ 79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,65,00,76,00,6d,00,67,\ 00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,34,00,00,00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgmt\command]@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,\ 00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,\ 65,00,78,00,65,00,20,00,2f,00,73,00,20,00,25,00,77,00,69,00,6e,00,64,00,69,\ 00,72,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\ 64,00,65,00,76,00,6d,00,67,00,6d,00,74,00,2e,00,6d,00,73,00,63,00,00,00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\gpedit]@=hex(2):40,00,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,\ 79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,67,00,70,00,65,00,64,00,69,\ 00,74,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,00,00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\gpedit\command]@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,\ 73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,\ 00,65,00,20,00,2f,00,73,00,20,00,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,\ 25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,67,00,70,\ 00,65,00,64,00,69,00,74,00,2e,00,6d,00,73,00,63,00,00,00 Link to comment Share on other sites More sharing options...
Yzöwl Posted December 25, 2006 Share Posted December 25, 2006 Can you not just make do with this?Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgmt]@=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\ 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\ 65,00,76,00,6d,00,67,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,34,00,00,\ 00[HKEY_CURRENT_USER\Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgmt\command]@=hex(2):6d,00,6d,00,63,00,20,00,2f,00,73,00,20,00,25,00,73,00,79,00,73,00,74,\ 00,65,00,6d,00,72,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,\ 65,00,6d,00,33,00,32,00,5c,00,64,00,65,00,76,00,6d,00,67,00,6d,00,74,00,2e,\ 00,6d,00,73,00,63,00,00,00[HKEY_CURRENT_USER\Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\gpedit]@=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\ 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,67,00,\ 70,00,65,00,64,00,69,00,74,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,00,\ 00[HKEY_CURRENT_USER\Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\gpedit\command]@=hex(2):6d,00,6d,00,63,00,20,00,2f,00,73,00,20,00,25,00,73,00,79,00,73,00,74,\ 00,65,00,6d,00,72,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,\ 65,00,6d,00,33,00,32,00,5c,00,67,00,70,00,65,00,64,00,69,00,74,00,2e,00,6d,\ 00,73,00,63,00,00,00I've shortened the excessive commands a little! Link to comment Share on other sites More sharing options...
neo Posted December 25, 2006 Author Share Posted December 25, 2006 thanks solution is working fine but i want to know what is wrong in My CODE. Link to comment Share on other sites More sharing options...
maxXPsoft Posted December 26, 2006 Share Posted December 26, 2006 (edited) they are showing you, @=hex(2):which creates a REG_Expand_SZ keyand actually you don't need but the 2 keys with the command[HKEY_CURRENT_USER\Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Device Manager\command]@=hex(2):6d,00,6d,00,63,00,20,00,2f,00,73,00,20,00,25,00,73,00,79,00,73,00,74,\00,65,00,6d,00,72,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,\65,00,6d,00,33,00,32,00,5c,00,64,00,65,00,76,00,6d,00,67,00,6d,00,74,00,2e,\00,6d,00,73,00,63,00,00,00[HKEY_CURRENT_USER\Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Group Policy Editor\command]@=hex(2):6d,00,6d,00,63,00,20,00,2f,00,73,00,20,00,25,00,73,00,79,00,73,00,74,\00,65,00,6d,00,72,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,\65,00,6d,00,33,00,32,00,5c,00,67,00,70,00,65,00,64,00,69,00,74,00,2e,00,6d,\00,73,00,63,00,00,00 Edited December 26, 2006 by maxXPsoft Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now