[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 90
  • Last Modified:

unable remove registry key

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
Julio Jose
Asked:
Julio Jose
  • 10
  • 7
  • 2
  • +4
1 Solution
 
Ryan ChongCommented:
try make sure you have Administrative right, refresh the window and delete again?
0
 
Julio JoseAuthor Commented:
I login as  administrator
0
 
John TsioumprisSoftware & Systems EngineerCommented:
For this job you need regedt32 NOT regedit...
Retry with taking ownership and full permissions
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
*** Hopeleonie ***IT ManagerCommented:
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
 
Julio JoseAuthor Commented:
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
 
MaheshArchitectCommented:
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
 
Davis McCarnOwnerCommented:
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
 
Darr247Commented:
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
 
Julio JoseAuthor Commented:
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
 
Davis McCarnOwnerCommented:
Do you have the flash drive plugged into the PC?
If its in use, you can't delete or change it.
0
 
Julio JoseAuthor Commented:
This is a VM, current have no USB storage device attach
0
 
Davis McCarnOwnerCommented:
And not on the host either?
0
 
Julio JoseAuthor Commented:
Yes
0
 
Davis McCarnOwnerCommented:
Is it a child domain and do you have domain admin privileges?
0
 
Julio JoseAuthor Commented:
it's workgroup not domain
0
 
Davis McCarnOwnerCommented:
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
 
Julio JoseAuthor Commented:
@Davis McCarn

PStools works but why I can't change the permission
0
 
Davis McCarnOwnerCommented:
You should have been able to.  Did it give you an error?
0
 
Julio JoseAuthor Commented:
I mean the PStools work I can delete the key

The question is why I'm administrator but unable change the key permission
0
 
Davis McCarnOwnerCommented:
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
 
Julio JoseAuthor Commented:
Thanks
0
 
Darr247Commented:
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
 
Julio JoseAuthor Commented:
That is a reason I need to change to do the testing, thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 10
  • 7
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now