regedit remove keys

otuatail

New member
Member
VIP
Local time
4:28 AM
Messages
102
Hi. Years since I have done any of this or even played with the batch files


Adobe leaves behind key so I have tried 2 difrent methods


Adobe.bat
---------- echo off
echo Deleting registry keys
reg delete "HKEY_CLASSES_ROOT\AdobeAAMDetect.AdobeAAMDetect.1 /f"

I get a dos window with delete Y/N not silent and the key is never deleted


Adobe.reg
----------
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\AdobeAAMDetect.AdobeAAMDetect1 /f]



I am running these from within windows not in the command window. but the batch file should be ok within the windows enviroment anyway.
 

My Computer

OS
Windows 7 32
Permissions are likely a problem here.

You're trying to modify HKEY_CLASSES_ROOT, which by default is read-only to users, so you'll need an administrator account to delete those keys.

Add a PAUSE command after the reg delete so you can read the output. If it's an access denied, try running the bat file as administrator.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
I don't think you add the quote after the /f.

Create this batch file and run it as Admin.

Code:
  [USER=353699]echo[/USER] off
reg delete "HKEY_CLASSES_ROOT\AdobeAAMDetect.AdobeAAMDetect.1" /f
if %errorlevel% equ 0 (
  echo "Key Deleted"
  pause
) else (
  echo "Key not deleted!"
  pause
  
)

Or just type in regedit in Windows search and right click regedit and run as administrator. Then Nav to the key to be deleted.

Now if it still can't be deleted then read my post at my website here.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
I always use "Revo Uninstaller" in the highest mode, to uninstall programs. It will remove any left over Registry keys.

Then just to make sure the registry is Clean, I run "Win Utilities" (Pro Ver.) to thoroughly clean the Registry.
Well, I use "Win Utils" every week anyway, just as part of my regular PC maintenance. A happy computer, is a Clean Computer! ;)
Yes, "Win Utils" is a Retail Program, but worth the cost, and one of the few programs that I will Buy.



Happy Holidays, Mate!
TM :cool:
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Various
OS
Win 7 Pro, SP1, x86, Win-11/Pro/64
CPU
AMD
Motherboard
Various
Memory
8GB Crucial
Graphics Card(s)
Various
Sound Card
OnBoard
Monitor(s) Displays
Acer 21.5"
Hard Drives
Crucial SSD, 500 GB
PSU
OEM
Case
SFF Slim Line Case
Cooling
OEM
Keyboard
eMachines
Mouse
Logitech Wireless
Internet Speed
varies
Antivirus
Windows Defender/Super Anti-Spyware
Browser
Firefox
Hi I don't need to run as admin as I am the administrator. This is a stand alone PC. But running F22 Simpilot code I get

ERROR: Access is denied
"Key not deleted"


However if I go directly to the key and simply hit the delete key then it is gone. No need to run regedit as administrator. This is confusing.


Ok. Running .bat as administrator works. But I don't need to run regedit as administrator.
Finaly how do I add comments to a batch file for my own use?
 
Last edited:

My Computer

OS
Windows 7 32
Back
Top