Using regedit to modify Vista registry<p>How can I use regedit to modify protected registry keys in Vista Business? Specifically, how can I use regedit to delete keys in HKLM\system\CurrentControlSet\Enum\USB?</p> <p>Here is what I have done so far:</p> <ul> <li>Logged in as admin</li> <li>Opened regedit with &quot;max&quot; access using [Ctrl][Shift][Enter]</li> <li>Attempted to change permissions on a key under Enum\USB to 'full control', but failed (at this point, Vista returns &quot;Access denied&quot;). This is where I am stuck.</li></ul> <p>What is the procedure for deleting these keys?</p> <p>Thanks for your help!</p> <p> </p> <p> </p>© 2009 Microsoft Corporation. All rights reserved.Fri, 13 Nov 2009 19:35:16 Z336bbb03-a0d7-444e-9db0-e1ad2faa6a1ehttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#336bbb03-a0d7-444e-9db0-e1ad2faa6a1ehttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#336bbb03-a0d7-444e-9db0-e1ad2faa6a1eEngineer2007http://social.msdn.microsoft.com/Profile/en-US/?user=Engineer2007Using regedit to modify Vista registry<p>How can I use regedit to modify protected registry keys in Vista Business? Specifically, how can I use regedit to delete keys in HKLM\system\CurrentControlSet\Enum\USB?</p> <p>Here is what I have done so far:</p> <ul> <li>Logged in as admin</li> <li>Opened regedit with &quot;max&quot; access using [Ctrl][Shift][Enter]</li> <li>Attempted to change permissions on a key under Enum\USB to 'full control', but failed (at this point, Vista returns &quot;Access denied&quot;). This is where I am stuck.</li></ul> <p>What is the procedure for deleting these keys?</p> <p>Thanks for your help!</p> <p> </p> <p> </p>Wed, 07 Mar 2007 18:13:07 Z2007-03-07T18:13:07Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#64ec88df-7442-48bc-8a9f-7e6d35d6597dhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#64ec88df-7442-48bc-8a9f-7e6d35d6597dStuart Andrewshttp://social.msdn.microsoft.com/Profile/en-US/?user=Stuart%20AndrewsUsing regedit to modify Vista registryI'm in exactly the same situation, and it's so frustrating.  Under XP I was able to set 'full control' to myself then delete the key.  Now, no matter what permissions are granted, under Vista Enterprise I cannot delete the blooming thing or view any sub-keys.  Pain in the neck, I've spent 2 days looking for a solution but no-one is forthcoming!  Can anyone offer advice, or maybe this is part of MS's wonderfully enhanced Windows Resource Protection that a genuine user cannot seem to circumvent.<br>Sun, 11 Mar 2007 15:21:05 Z2007-03-11T15:21:05Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#695fbe21-9c46-40d1-a514-56808629f7e4http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#695fbe21-9c46-40d1-a514-56808629f7e4AndyCadleyhttp://social.msdn.microsoft.com/Profile/en-US/?user=AndyCadleyUsing regedit to modify Vista registry<p>The default permissions only allow the SYSTEM account to make changes to that key. You could probably get round it by launching a process as SYSTEM to modify the key, though I wouldn't recommend going down that route without a really good reason.</p> <p>Is there some specific reason for wanting to delete those keys? What are you trying to achieve?</p>Sun, 11 Mar 2007 16:01:13 Z2007-03-11T16:01:13Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#608f395b-a1bc-45f3-8c2c-ebad18b06863http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#608f395b-a1bc-45f3-8c2c-ebad18b06863Trollsichttp://social.msdn.microsoft.com/Profile/en-US/?user=TrollsicUsing regedit to modify Vista registryI have same problem too. Need to delete the VID values for clearing Unknown USB devices. Please help how to set or add permissions. Thanks in advance.<br>Sun, 11 Mar 2007 23:39:56 Z2007-03-11T23:39:56Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#b33847a7-ac9c-42ba-ab7c-d0775c4fc26chttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#b33847a7-ac9c-42ba-ab7c-d0775c4fc26cAndyCadleyhttp://social.msdn.microsoft.com/Profile/en-US/?user=AndyCadleyUsing regedit to modify Vista registryCan you not delete them through Device Manager?Mon, 12 Mar 2007 09:28:40 Z2007-03-12T09:28:40Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#77596c42-4c13-4823-b659-7f95bf39008ehttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#77596c42-4c13-4823-b659-7f95bf39008eStuart Andrewshttp://social.msdn.microsoft.com/Profile/en-US/?user=Stuart%20AndrewsUsing regedit to modify Vista registryIt is a bit of a pain though, for instance I have several redundant registry keys created by programs I no longer have installed.  In XP, I could set myself as the user, give myself full control, then just hit 'delete' and away it went.  There's none of this on Vista though and it's hard starting regedit as a system user - there must be an easy way of deleting protected keys from the registry!  Even if it was something simple like turning off UAC and that would allow it, maybe MS should consider this as a hotfix since it does seem to be a problem.Tue, 13 Mar 2007 20:02:46 Z2007-03-13T20:02:46Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#03b4ca34-718d-408d-8a50-2d46dce9b4cehttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#03b4ca34-718d-408d-8a50-2d46dce9b4ceEngineer2007http://social.msdn.microsoft.com/Profile/en-US/?user=Engineer2007Using regedit to modify Vista registryIn my case, I am developing drivers that modify the Vista registry. Often times during testing I need to delete  keys from the registry to test a &quot;clean&quot; installation. I realize that I can achieve this by re-imaging my drive, but there MUST be an quicker way to do this!Tue, 13 Mar 2007 20:25:03 Z2007-03-13T20:25:03Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#e813fb15-5e22-495d-9134-baa5d8362497http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#e813fb15-5e22-495d-9134-baa5d8362497Jaznohttp://social.msdn.microsoft.com/Profile/en-US/?user=JaznoUsing regedit to modify Vista registryHow launch a process as SYSTEM?  We have a program that did not uninstall correctly and now we need to clean the registry in order to install the newer version.  Running regedit as Administrator has not worked.<br>Sat, 17 Mar 2007 16:39:56 Z2007-03-17T16:39:56Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#517e7488-64b4-48b5-ba38-f704d192b3ddhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#517e7488-64b4-48b5-ba38-f704d192b3ddNoboruryuhttp://social.msdn.microsoft.com/Profile/en-US/?user=NoboruryuUsing regedit to modify Vista registryI have found your way around the regedit problem with Vista.<br><br>You have to go to run, then type in c:, then go to windows, then scroll down to regedit.<br><br>This should solve your problem.<br>Mon, 19 Mar 2007 16:29:02 Z2007-03-19T16:29:02Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#fd7844a6-00ae-4967-9b0f-16b210278ceahttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#fd7844a6-00ae-4967-9b0f-16b210278ceaStuart Andrewshttp://social.msdn.microsoft.com/Profile/en-US/?user=Stuart%20AndrewsUsing regedit to modify Vista registryThat doesn't really make a lot of sense, I'm guessing all you're suggesting here is a way to open regedit - which we can all do just by typing 'regedit'.<br><br>The problem we have is not being able to delete protected registry keys, and searching online I can't see that anyone has come up with a solution.  Maybe Microsoft aren't even aware this is a problem, but it is causing a headache for many developers I know of and there's no forthcoming solution yet.<br>Mon, 19 Mar 2007 21:27:45 Z2007-03-19T21:27:45Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#d3e86433-a7c2-4d13-a3d0-86d414b21cc0http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#d3e86433-a7c2-4d13-a3d0-86d414b21cc0Trollsichttp://social.msdn.microsoft.com/Profile/en-US/?user=TrollsicUsing regedit to modify Vista registry<div class=quote><table width="85%"><tr><td class=txt4> <strong>Stuart Andrews wrote:</strong></td></tr><tr><td class=quoteTable><table width="100%"><tr><td width="100%" valign=top class=txt4>Maybe Microsoft aren't even aware this is a problem, but it is causing a headache for many developers I know of and there's no forthcoming solution yet.<br></td></tr></table></td></tr></table></div><br>I'm pretty sure Microsoft are aware of this problem. I've tried to get help from support center on this specific problem, but yet no answer. By the way, i've managed to set all possible permissions on any administrator account, but problem still persist... Will keep waiting for solution or hotfix.<br>Tue, 20 Mar 2007 00:12:00 Z2007-03-20T00:12:00Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#8ca71645-a42b-4aee-8dbe-f1c3e12ef9f8http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#8ca71645-a42b-4aee-8dbe-f1c3e12ef9f8Stuart Andrewshttp://social.msdn.microsoft.com/Profile/en-US/?user=Stuart%20AndrewsUsing regedit to modify Vista registryYes I've done the same, I've even tried logging in under safe mode as I've clutched at straws.  Microsoft do need to address this quickly with a hotfix - fair enough if there's protected keys, but they should operate the same as under XP, allowing you to change a key's attributes from read/execute to full control which will then allow you to hit delete and be done with it.<br>Tue, 20 Mar 2007 10:32:21 Z2007-03-20T10:32:21Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#23650d64-b120-46e4-980e-e25c46a54fcfhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#23650d64-b120-46e4-980e-e25c46a54fcfsanthisree Ragipatihttp://social.msdn.microsoft.com/Profile/en-US/?user=santhisree%20RagipatiUsing regedit to modify Vista registry<P>WRP registry keys can be updated/deleted by only Trusted Installers.</P> <P>You can know whether the key is WRP Protected or not, </P> <P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'">Right click on the key -&gt; Click Permissions -&gt;&nbsp;Full Control would be only for</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'">&nbsp;TrustedInstaller(users/groupname tab) then the key is WRP. &nbsp;This means only Trusted Installer gets to make changes to the key.</SPAN></P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'"></SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'"> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'">Trusted Installer is a service that hosts code for install, update, and un-install of OS components. The service is trusted by the system to check for all the pre-requisites such as package authenticity, signing authority and dependencies before making system-impactful changes.</SPAN></P> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS','sans-serif'">Trusted installer is the only process/service that is allowed to make changes to WRP resources</SPAN></P> <P>regards</P> <P>Santhi</SPAN></P>Thu, 22 Mar 2007 05:42:52 Z2007-03-22T05:42:52Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#e74e7743-169a-4488-a1d0-bd8b4f1f282fhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#e74e7743-169a-4488-a1d0-bd8b4f1f282fStuart Andrewshttp://social.msdn.microsoft.com/Profile/en-US/?user=Stuart%20AndrewsUsing regedit to modify Vista registryAny update on this?  I could really use a solution that allows me to delete protected keys.  Thanks.<br>Mon, 09 Apr 2007 17:14:04 Z2007-04-09T17:14:04Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#a02c2992-dc6a-484f-9056-c14c72a2d155http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#a02c2992-dc6a-484f-9056-c14c72a2d155johnmnhttp://social.msdn.microsoft.com/Profile/en-US/?user=johnmnUsing regedit to modify Vista registry<p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:9.5pt;color:black;line-height:115%;font-family:'Arial','sans-serif'">To edit or delete a protected key, make sure regedit is opened with administrator rights.  Select permissions on the key and change ownership from trustedinstaller to an account/group with Administrative rights.  Once this change is applied to the key, grant the Administrators - Full Control.  The key can now be deleted or changed.</span></span></p>Tue, 10 Apr 2007 15:09:10 Z2007-04-10T15:09:10Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#88b0c69c-e344-4c14-b4f8-b9a6b4cb0215http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#88b0c69c-e344-4c14-b4f8-b9a6b4cb0215Paul13http://social.msdn.microsoft.com/Profile/en-US/?user=Paul13Using regedit to modify Vista registry<p>I have the same problem trying to delete a vid key associated with a camera into a front usb port that gets a &quot;usb device not recognized&quot;. Would you mind being a little more specific in terms of the permissions window and what to do as I am not an internalist? </p> <p>Thank you,</p> <p>Paul</p>Mon, 30 Apr 2007 19:15:01 Z2007-04-30T19:15:01Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#8ec6da4c-a8ed-48c9-8d5a-df1ec06f3bcbhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#8ec6da4c-a8ed-48c9-8d5a-df1ec06f3bcbchriskelkhttp://social.msdn.microsoft.com/Profile/en-US/?user=chriskelkUsing regedit to modify Vista registryOn the Owner tab, Change Owner to the Administrators group, ticking the box to Replace owner on subcontainers and objects.  This then allowed me to change permissions.Fri, 11 May 2007 12:08:05 Z2007-05-11T12:08:05Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#3e940325-1cdf-42b5-b7e7-a1383f4843f6http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#3e940325-1cdf-42b5-b7e7-a1383f4843f6Paul13http://social.msdn.microsoft.com/Profile/en-US/?user=Paul13Using regedit to modify Vista registry<p>Thanks for the info. However, when I try and do this it comes back and says it won't allow the change. It appears to me that this system that I received from Dell came this way and I won't be able to use the front USB ports until I delete this VID 0000 key.</p> <p>Thanks much,</p> <p>Paul</p>Fri, 11 May 2007 13:40:09 Z2007-05-11T13:40:09Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#8af78208-d6d7-4509-92d2-eef73317c655http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#8af78208-d6d7-4509-92d2-eef73317c655Ashwin H.M_http://social.msdn.microsoft.com/Profile/en-US/?user=Ashwin%20H.M_Using regedit to modify Vista registryEven we are facing the same problem. But we want to delete the reistry VID/PID using our own application which has administrative privilages on Vista. Still we are not able to achive that.. Please guide us.Thu, 21 Jun 2007 13:22:43 Z2007-06-21T13:22:43Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#482d74ba-4c1f-46c3-867f-e8f6edcef5d0http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#482d74ba-4c1f-46c3-867f-e8f6edcef5d0Paul13http://social.msdn.microsoft.com/Profile/en-US/?user=Paul13Using regedit to modify Vista registry<p>Just an update to my last info. Since, I have received a replacement system from Dell that did not have the problem. The front ports on the replacement system worked just fine from the beginning. After all this time, has MS not replied to any inquiries re: this problem??</p> <p>Paul</p>Thu, 21 Jun 2007 22:54:26 Z2007-06-21T22:54:26Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#863485be-bff7-474a-923b-32f6c47a4dcahttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#863485be-bff7-474a-923b-32f6c47a4dcasoftwebdevhttp://social.msdn.microsoft.com/Profile/en-US/?user=softwebdevUsing regedit to modify Vista registry<p align=left>usb and usbstorage registry keys are protected and can't be deleted even though you have administrators priviledge.  </p> <p align=left> </p>Mon, 06 Aug 2007 19:56:14 Z2007-08-06T19:56:14Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#1b8a6990-387f-475a-b5a8-31a15a3f11echttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#1b8a6990-387f-475a-b5a8-31a15a3f11ecJonathon Careyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jonathon%20CareyUsing regedit to modify Vista registry<font face="Times New Roman"></font> <p align=left>They can be deleted but you have to take controle of each key then subkey one at a time adding yourself to the permissions tell you have dont it one at a time to them all.  </p> <p align=left> </p> <p align=left>I had a device probelm once on my vista system and it took me 10 min just to take controle of each subkey tell I had them all and then I was able to delete the root key to rescan the drivers to fix the problem. realy sucked.</p> <p align=left> </p> <p align=left>Jonathon Carey</p>Sat, 11 Aug 2007 03:37:54 Z2007-08-11T03:37:54Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#41f0e7f3-a26e-4baf-ac31-af8820966518http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#41f0e7f3-a26e-4baf-ac31-af8820966518UnitUniverse Dev_http://social.msdn.microsoft.com/Profile/en-US/?user=UnitUniverse%20Dev_Using regedit to modify Vista registry<p align=left><font face=Arial size=2>Microsoft should give a way to view and delete the installed but unplugged hardwares. Someone use his PC very opened and let many of his friends copy files with their USB-Disks, that makes the registry larger and larger. The USB-Disks reg keys need to have a way and access right to delete without borrow each again from the friends.</font></p>Sun, 12 Aug 2007 07:19:21 Z2007-08-12T07:19:21Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#6dfd53a1-5a5d-4f9f-9b8c-12e49c89ac4chttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#6dfd53a1-5a5d-4f9f-9b8c-12e49c89ac4cJonathon Careyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jonathon%20CareyUsing regedit to modify Vista registry<font face="Times New Roman"></font> <p align=left><font face=Arial size=2></font> </p>If you delete the device from device manager before unplugging it, it should remove the regkeys from the system.Sun, 12 Aug 2007 07:28:04 Z2007-08-12T07:28:04Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#febcf55f-a9fb-44bd-bb6e-abe85f7a3879http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#febcf55f-a9fb-44bd-bb6e-abe85f7a3879Botulismhttp://social.msdn.microsoft.com/Profile/en-US/?user=BotulismUsing regedit to modify Vista registryI had a similar problem, but on a different key. I was finally able to delete them by disabling UAC and rebooting. Then I could change the ownership, add permissions for my user, and then delete the keys. <br><br>One thing, I did have to do this on each folder and subfolder individually. The checkboxes to apply to all subfolders did not seem to have any effect.<br><br>Hope this helps.<br>Wed, 15 Aug 2007 05:06:40 Z2007-08-15T05:06:40Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#9c9844c3-e9b9-48ac-b708-bf35f7b063a8http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#9c9844c3-e9b9-48ac-b708-bf35f7b063a8Sc_sihttp://social.msdn.microsoft.com/Profile/en-US/?user=Sc_siUsing regedit to modify Vista registry<p align=left><font face=Arial size=2></font> </p> <p>Hello All</p> <p align=left> </p> <p align=left>a workaround for removing unpluged hardware:</p> <p align=left>open a cmd window:</p> <p align=left> </p> <p align=left>enter: <strong><em>set devmgr_show_nonpresent_devices=1</em></strong></p> <p align=left> </p> <p align=left>than <strong><em>start devmgmt.msc   (do not use compmgmt.msc)</em></strong><br></p> <p align=left>go to view than select <strong>show hiden devices</strong> (or something like that, sorry but im using French version)</p> <p align=left>you will see the list of all hardware ever pluged in the computer (grey color), than just uninstall</p> <p align=left> </p> <p align=left>it worked for me , hope this will help</p> <p align=left> </p> <p align=left> </p> <p align=left>to hide unpluged hardware tape <strong><em>set devmgr_show_nonpresent_devices=0</em></strong></p> <p><strong><em></em></strong> </p> <p align=left><strong><em></em></strong> </p> <p align=left><br></p>Thu, 20 Sep 2007 01:49:38 Z2007-09-20T01:49:38Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#a2f20c95-815f-44ed-b1b1-c34ed3dc4cedhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#a2f20c95-815f-44ed-b1b1-c34ed3dc4cedMagnus Mhttp://social.msdn.microsoft.com/Profile/en-US/?user=Magnus%20MUsing regedit to modify Vista registrySc_si: Many thanks for your advice!<br><br>I have been struggling for months to get rid of a broken printer driver and this solved it.<br><br><br>Mon, 22 Oct 2007 19:44:59 Z2007-10-22T19:44:59Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#2f01e87a-81aa-43a1-bbab-d96bfff1f9d0http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#2f01e87a-81aa-43a1-bbab-d96bfff1f9d0JRDoddhttp://social.msdn.microsoft.com/Profile/en-US/?user=JRDoddUsing regedit to modify Vista registry<p> </p> <p align=left>I am having problems with locked keys, and even as admin (and in safe mode) can't change permissions.</p> <p align=left> </p> <p align=left>AccessEnum  program shows  ???  instead of who own the key.  Some say &quot;The handle is invalid&quot;</p> <p align=left> </p> <p align=left> </p> <p align=left><font face=Arial size=2></font> </p>Sat, 01 Dec 2007 06:48:39 Z2007-12-01T06:48:39Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#4c2778a6-9b2e-407a-957f-b8af30c30173http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#4c2778a6-9b2e-407a-957f-b8af30c30173JRDoddhttp://social.msdn.microsoft.com/Profile/en-US/?user=JRDoddUsing regedit to modify Vista registry<p>though i really can't explain it well, this snip below FIXED the problem</p> <p align=left>what it comes down to is the keys are owned by the SYSTEM which you can't normally sign in as....</p> <p align=left>(and all these fantastic utilities:  THANK YOU  Mr Russinovitch !)</p> <p align=left> </p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:12pt;font-family:'Arial','sans-serif'">**** </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal" align=left><span style="font-size:12pt;font-family:'Arial','sans-serif'"></span> </p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><b><span style="font-size:12pt;color:#333333;font-family:'Arial','sans-serif'"><a title="http://groups.google.com/group/microsoft.public.windows.vista.security" href="http://groups.google.com/group/microsoft.public.windows.vista.security"><span style="color:#0000cc">microsoft.public.windows.vista.security</span></a> </span></b></p> <p class=MsoNormal style="margin:0in 0in 10pt;line-height:normal"><span style="font-size:12pt;font-family:'Arial','sans-serif'">From regedit, you should be able to take ownership of the key, and then <br><b><span style="background:#ffff66;color:black">change</span></b> the key's security settings. </span></p> <p class=MsoNormal style="margin:0in 0in 10pt;line-height:normal"><span style="font-size:12pt;font-family:'Arial','sans-serif'">Alternatively, you can download the following tool from microsoft to open an <br>instance of regedit as system: </span></p> <p class=MsoNormal style="margin:0in 0in 10pt;line-height:normal"><span style="font-size:12pt;font-family:'Arial','sans-serif'"><a title="http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx"><span style="color:#0000cc"><span style="color:#0000cc">http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx</span></a> </span></p> <p class=MsoNormal style="margin:0in 0in 10pt;line-height:normal"><span style="font-size:12pt;font-family:'Arial','sans-serif'">The following command line will open a &quot;system&quot; regedit: </span></p> <p class=MsoNormal style="margin:0in 0in 10pt;line-height:normal"><span style="font-size:12pt;font-family:'Arial','sans-serif'"><strong>psexec -s -i regedit</strong> </span></p> <p class=MsoNormal style="margin:0in 0in 10pt;line-height:normal"><span style="font-size:12pt;font-family:'Arial','sans-serif'">(Note: You have to execute this command line from an &quot;administrator&quot; command <br>prompt [right-click command prompt and click run as administrator]) </span></p> <p class=MsoNormal style="margin:0in 0in 10pt;line-height:normal"><span style="font-size:12pt;font-family:'Arial','sans-serif'">-- <br>- JB <br>  Microsoft MVP Windows Shell/User </span></p> <p align=left> <p align=left><font face=Arial size=2>****</font></p> <p></p></span>Sat, 01 Dec 2007 11:41:56 Z2007-12-01T11:41:56Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#6578eeeb-333b-48e7-8918-21bdc26a7e06http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#6578eeeb-333b-48e7-8918-21bdc26a7e06scaielshttp://social.msdn.microsoft.com/Profile/en-US/?user=scaielsUsing regedit to modify Vista registry<p>You're a star JRDodd.  I had an issue where a failed install tried to load a non existent driver on every start up.  I had all the issues mentioned with not being able to delete the registry keys.  I tried safe mode, turning off user account protection, adding myself to each key, I even managed to change the owner to myself, but still couldn't delete them.</p> <p align=left> </p> <p align=left>Your hint about psexec from Mr Russinovitch worked a treat.  20 seconds, job done.  </p> <p align=left> </p> <p align=left>Thanks, Steve.</p>Thu, 06 Dec 2007 23:41:04 Z2007-12-06T23:41:04Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#b9c15486-723f-479f-8760-03522601ad68http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#b9c15486-723f-479f-8760-03522601ad68Yomo Huewordhttp://social.msdn.microsoft.com/Profile/en-US/?user=Yomo%20HuewordUsing regedit to modify Vista registry<font size=3><span style="font-family:Arial">this worked 100% now I can reinstal my ati catalyst<br></span></font>Fri, 25 Jan 2008 16:55:18 Z2008-01-25T16:55:18Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#55d4e9f6-f106-4a13-9e10-e04578614674http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#55d4e9f6-f106-4a13-9e10-e04578614674DaBoomerhttp://social.msdn.microsoft.com/Profile/en-US/?user=DaBoomerUsing regedit to modify Vista registry<p align=left><font face=Arial size=2></font> </p>I did this and all my devices disappeared in device manager and nothing will auto detect when I plug into usb now.Mon, 19 May 2008 20:22:00 Z2008-05-19T20:22:00Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#e1755954-1c52-4419-9d86-4791d7d73647http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#e1755954-1c52-4419-9d86-4791d7d73647Coder24.comhttp://social.msdn.microsoft.com/Profile/en-US/?user=Coder24.comUsing regedit to modify Vista registryHi Engineer2007: <br /> <br /> You can use the RegistyKey Class and the Registry Class, <br /> to programmatically delete, modify, add any registry key<br /> or sub-path or main-path. <br /> <br /> I hope this helps...<br /> <br /> I hope that this thread is SOLVED! So we can close it, <br /> because it's almost 2010 now. <br /> <br /> Have a nice day...<br /> <br /> Best regards,<br /> Fisnik <br /><hr class="sig">Coder24.comSun, 11 Oct 2009 17:16:03 Z2009-10-11T17:16:03Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#f4b24637-5f8d-41d0-a8a9-d8841592362chttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#f4b24637-5f8d-41d0-a8a9-d8841592362cDeadRabithttp://social.msdn.microsoft.com/Profile/en-US/?user=DeadRabitUsing regedit to modify Vista registryHi, <div><br/></div> <div>I had a similar issue on windows 7, couldn't uninstall visual studio 2008. (this is the dedicated visual studio removal tool, the add/rem programs one didn't work), after I solved the problem where the installer couldnt find vs_minred.msi (<a href="http://blogs.msdn.com/astebner/archive/2006/09/04/739820.aspx">http://blogs.msdn.com/astebner/archive/2006/09/04/739820.aspx</a>) It would say it couldn't change the key.</div> <div><br/></div> <div>after using psexec it was a different key etc.. etc... then i decided that wouldn't it be peachy if all keys were accessible by administrators?</div> <div><br/></div> <div>download/install the subinacl tool: <span style="font-family:'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;font-size:13px;color:#333333;line-height:16px"><a style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#0066dd;cursor:pointer;text-decoration:none;list-style-type:none;padding:0px;margin:0px;border:0px none initial" href="http://blogs.msdn.com/astebner/archive/2006/09/04/739820.aspx">http://blogs.msdn.com/astebner/archive/2006/09/04/739820.aspx </a></span></div> <div><br/></div> <div>run a command prompt as system (from a command prompt as admin)</div> <div><em>psexec -s -i cmd</em></div> <div><br/></div> <div>from the system console </div> <div><em>notepad reset.cmd</em></div> <div><br/></div> <div>paste the following into the oppened notepad file</div> <div> <div><em>cd /d &quot;C:\Program Files (x86)\Windows Resource Kits\Tools&quot;</em></div> <div><em><br/></em></div> <div><em>subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /setowner=administrators &gt; %temp%\subinacl_output.txt</em></div> <div><em>subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /setowner=administrators &gt;&gt; %temp%\subinacl_output.txt</em></div> <div><em><br/></em></div> <div><em>subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators &gt;&gt; %temp%\subinacl_output.txt</em></div> <div><em>subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators &gt;&gt; %temp%\subinacl_output.txt</em></div> <div><em><br/></em></div> <div><em>subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators &gt;&gt; %temp%\subinacl_output.txt</em></div> <div><em>subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators &gt;&gt; %temp%\subinacl_output.txt</em></div> <div><em><br/></em></div> <div><em><br/></em></div> <div><em>subinacl /subdirectories %programfiles%\ /grant=administrators=f /grant=system=f /grant=users=e &gt;&gt; %temp%\subinacl_output.txt</em></div> <div><em><br/></em></div> <div><em>subinacl /subdirectories %windir%\ /grant=administrators=f /grant=system=f /grant=users=e &gt;&gt; %temp%\subinacl_output.txt</em></div> <div><br/></div> <div><br/></div> <div><br/></div> <div>you may have to change the first line depending on whether subinacl was installed in the (x86) program files, or the normal program files, anyway, save and exit. back in the system command prompt</div> <div><em>reset.cmd</em></div> <div><em><br/></em></div> <div>this should run through and give ownership of all keys to administrators (this issue shouldn't re occur with any key that is currently in the registry) give full control of all keys to admin, so all keys can be edited by a regedit oppened as admin. </div> <div><br/></div> <div>hoped this might be of help to someone who has multiple keys owned by system</div> <div>D.R</div> </div> <div><br/></div>Sun, 18 Oct 2009 10:55:47 Z2009-10-18T10:55:47Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#e8301cd6-2531-4e6b-b19c-fd3f35053e0dhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#e8301cd6-2531-4e6b-b19c-fd3f35053e0dCoder24.comhttp://social.msdn.microsoft.com/Profile/en-US/?user=Coder24.comUsing regedit to modify Vista registryHi Engineer2007: <br/><br/>Based on your &quot;title&quot;, I can say: As you bypass the UAC elevation and you run <br/>regedit through a UAC elevation, then everything will work fine!<br/><br/>Have a nice day...<br/><br/>Best regards,<br/>Fisnik<hr class="sig">Coder24.comFri, 23 Oct 2009 20:02:14 Z2009-10-23T20:02:14Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#cb4c749e-1834-409e-9639-8d6e7595e469http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#cb4c749e-1834-409e-9639-8d6e7595e469Coder24.comhttp://social.msdn.microsoft.com/Profile/en-US/?user=Coder24.comUsing regedit to modify Vista registryHi Engineer2007: <br/><br/>BTW, Is this thread solved or NOT?<br/><br/>Have a nice day...<br/><br/>Best regards,<br/>Fisnik<hr class="sig">Coder24.comFri, 23 Oct 2009 20:02:41 Z2009-10-23T20:02:41Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#c85fd344-4aba-458f-99c2-8ff0db034ab2http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#c85fd344-4aba-458f-99c2-8ff0db034ab2d1sourcehttp://social.msdn.microsoft.com/Profile/en-US/?user=d1sourceUsing regedit to modify Vista registry<p>I'm on vista 64. Editing Rpc/ClientProtocols. It got error for permission.</p> <p>Fix:</p> <p>Right click ClientProtocols choose permissions, find the name of the user you are logging in as. Place check mark under full control. Then choose advance, find the name of the user you are logging in as choose edit. Choose full control.</p> <p>Trick. Choose 4 times you will get an error, on 4th attempt choose to cancel, you will get back to first screen, find the name of the user you are logging in as choose full control again, and hit ok. Now you can add. Edit ect....</p>Mon, 26 Oct 2009 01:37:17 Z2009-10-26T01:37:17Zhttp://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#bc123030-f67b-41b3-89bc-6f606fc81742http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/336bbb03-a0d7-444e-9db0-e1ad2faa6a1e#bc123030-f67b-41b3-89bc-6f606fc81742Coder24.comhttp://social.msdn.microsoft.com/Profile/en-US/?user=Coder24.comUsing regedit to modify Vista registryHi Engineer2007:<br/><br/>How is the situation on your side?<br/>Is this thread solved or NOT?<br/><br/>Please tell me!<br/><br/>Have a nice day...<br/><br/>Best regards,<br/>Fisnik<hr class="sig">Coder24.comFri, 13 Nov 2009 19:35:16 Z2009-11-13T19:35:16Z