Solved

unable remove registry key

Posted on 2016-09-22
24
70 Views
Last Modified: 2016-09-27
Hi, I try to remove the registry key inn USBSTOR but failed, I have take ownership and give everyone full permission for this key

https://www.evernote.com/l/AASddi2YSMJIDJ1LxqLfZLMbOYHDijX8NjwB/image.png
0
Comment
Question by:Julio Jose
  • 10
  • 7
  • 2
  • +4
24 Comments
 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
try make sure you have Administrative right, refresh the window and delete again?
0
 

Author Comment

by:Julio Jose
Comment Utility
I login as  administrator
0
 
LVL 13

Expert Comment

by:John Tsioumpris
Comment Utility
For this job you need regedt32 NOT regedit...
Retry with taking ownership and full permissions
0
 
LVL 18

Expert Comment

by:hopeleonie
Comment Utility
Can you check the permissions in that Subkey?

1
If you don't have permission add your user (as already mentioned) to delete that key.
0
 

Author Comment

by:Julio Jose
Comment Utility
I receive error

launch regedt32 try add administrator full control

https://www.evernote.com/l/AAR6j3pAWrhLgLw3TGOr8KpYsu78dC0RkJ0B/image.png

Try add administrator for full control

https://www.evernote.com/l/AATSOdmtSRhCNp_QplzfCujICrFR93ufTgUB/image.png
0
 
LVL 35

Expert Comment

by:Mahesh
Comment Utility
you can do whatever you are trying to do with regedit, no matter what exe you are opening (regedit.exe or regedt32.exe), both pointing to same process

you do not have ownership of registry key

start regedit or regedt32 with run as aministrator

go to "usbstor" key and right click properties and go to advanced \ owner and take ownership of file, ensure you will select "replce owner on sub containers. once you taken ownership, close all properties window and again go to properties and try to give your account full control, it will work

Ensure you will logon to machine having local administrators right

Mahesh.
0
 
LVL 42

Expert Comment

by:Davis McCarn
Comment Utility
I guess nobody noticed it is the Sandisk U3 CDRom device the OP is trying to remove?
To do that, you have to uninstall the U3 Launchpad from the PC or use the removal tool from Sandisk's page: http://kb.sandisk.com/app/answers/detail/a_id/2550/~/removing%2Funinstalling-u3-launchpad-on-a-pc
BTW, the drive must be plugged into the PC or the keys wouldn't be there and; because it is an active device using those registry keys, you can't touch them with Regedit.  It's not a regedit problem, at all.
0
 
LVL 44

Expert Comment

by:Darr247
Comment Utility
Can you also specify the full path whence you're trying to delete that key?
e.g. HKLM\..., HKCU\..., et cetera.

None of the screen grabs (which could be attached directly here, by the way) show that info.
0
 

Author Comment

by:Julio Jose
Comment Utility
The full path

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR

I have try run as administrator and select everyone have full control, when click okay I receive error.



https://www.evernote.com/l/AASI1rar3T5NG5Fgt5kuA4kSP0gagPVe2ncB/image.png
0
 
LVL 42

Expert Comment

by:Davis McCarn
Comment Utility
Do you have the flash drive plugged into the PC?
If its in use, you can't delete or change it.
0
 

Author Comment

by:Julio Jose
Comment Utility
This is a VM, current have no USB storage device attach
0
Too many email signature updates to deal with?

Do you feel like you are taking up all of your time constantly visiting users’ desks to make changes to email signatures? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

 
LVL 42

Expert Comment

by:Davis McCarn
Comment Utility
And not on the host either?
0
 

Author Comment

by:Julio Jose
Comment Utility
Yes
0
 
LVL 42

Expert Comment

by:Davis McCarn
Comment Utility
Is it a child domain and do you have domain admin privileges?
0
 

Author Comment

by:Julio Jose
Comment Utility
it's workgroup not domain
0
 
LVL 42

Accepted Solution

by:
Davis McCarn earned 500 total points
Comment Utility
Then you need to get a copy of PSTools ( https://technet.microsoft.com/en-us/sysinternals/pstools.aspx ), unzip it, copy the folder to the root of the VM's C drive, then run this command (I made it a BAT file in the folder):
c:\pstools\psexec -s -i regedit.exe
It will launch regedit running as the SYSTEM account which is why you are having problems.  The SYSTEM account owns big chunks of the registry and it is above the Administrator.
1
 

Author Comment

by:Julio Jose
Comment Utility
@Davis McCarn

PStools works but why I can't change the permission
0
 
LVL 42

Expert Comment

by:Davis McCarn
Comment Utility
You should have been able to.  Did it give you an error?
0
 

Author Comment

by:Julio Jose
Comment Utility
I mean the PStools work I can delete the key

The question is why I'm administrator but unable change the key permission
0
 
LVL 42

Expert Comment

by:Davis McCarn
Comment Utility
Because it was owned by the SYSTEM or TRUSTEDINSTALLER account which is above the Administrator in the hierarchy of Windows.
You could have used PSTools to change the permissions because it launched regedit as the SYSTEM account.
0
 

Author Closing Comment

by:Julio Jose
Comment Utility
Thanks
0
 
LVL 44

Expert Comment

by:Darr247
Comment Utility
Actually, when you see stuff that belongs to the System user, you should avoid changing ownership of them unless absolutely necessary.

System ownership isn't really covered in the windows documentation for permissions.
0
 

Author Comment

by:Julio Jose
Comment Utility
That is a reason I need to change to do the testing, thanks
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A few months ago I had an issue with LaserJet 1020 printer which was installed to XP and Windows 7.  It was installed to XP and working, but when I tried to connect from a Windows 7 PC, it would attempt connection and then fail.  Sometimes the Spool…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now