PDA

View Full Version : w7 help me to delete these keys


mantra
February 23rd, 2011, 03:06 AM
Hi

i run w7 ultimate like administrator ,and i uninstalled avast
after i used the avast clean tool

but i get lots of keys

for example

[HKEY_LOCAL_MACHINE\system\controlset001\services\aswtdi\]

i know it's not a big issue
but i want to get rid of them
the problem , run regedit like administrator , but i can not delete this key for example , because i have enough permission

how can i do it?
thanks
cheers

philby
February 23rd, 2011, 04:36 AM
Hi mantra

Can you select the key, choose Edit > Permissions > Advanced and change ownership to your admin username?

If there are sub-keys, you may also have to check the box that says "Replace owner on subcontainers and objects"

Then try to delete...

mantra
February 24th, 2011, 06:41 AM
-{ Quote: "Hi mantra

Can you select the key, choose Edit > Permissions > Advanced and change ownership to your admin username?

If there are sub-keys, you may also have to check the box that says "Replace owner on subcontainers and objects"

Then try to delete..." }-
nope :(
i got an error

stackz
February 24th, 2011, 07:03 AM
Try using Sysinternals PsExec (http://technet.microsoft.com/en-us/sysinternals/bb897553) to launch RegEdit as System.

Here's a simple batch file to do the job, just insert the file path for PsExec.

@echo off
for /F "tokens=1,2*" %%x in ('bcdedit') do set adminTest=%%x
if (%adminTest%)==(Access) goto not_admin

"C:\file\path\PsExec" -s -i -d "C:\Windows\regedit.exe"
goto finish

:not_admin
echo You must run this script as administrator!
pause
goto finish

:finish

mantra
March 3rd, 2011, 06:36 AM
-{ Quote: "Try using Sysinternals PsExec (http://technet.microsoft.com/en-us/sysinternals/bb897553) to launch RegEdit as System.

Here's a simple batch file to do the job, just insert the file path for PsExec.

@echo off
for /F "tokens=1,2*" %%x in ('bcdedit') do set adminTest=%%x
if (%adminTest%)==(Access) goto not_admin

"C:\file\path\PsExec" -s -i -d "C:\Windows\regedit.exe"
goto finish

:not_admin
echo You must run this script as administrator!
pause
goto finish

:finish
" }-
thanks man :thumb:
worked like a charm !