Registry Entry to Remove This...?

Synomenon

Lifer
Dec 25, 2004
10,547
6
81
I've been trying to delete a file on my PC and haven't had much success.

For some reason I've ended up with a file on my desktop called "Flash10p.ocx". I can't delete it. I've tried changing permissions to give me full control (my account is the main administrator account for the PC), but even when I've done that, when I try deleting the file I get a message that says:

You need permission to perform this action

You require permission from FT03S\username to make changes to this file

Flash10p.ocx
Type: ActiveX control
Size: 5.87MB
Date Modified: 5/7/2011 20:19
So I tried installing this registry entry (it's a *.reg file called "GrantAdminFullControl.reg"):
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Grant Admin Full Control"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\exefile\shell\runas2]
@="Grant Admin Full Control"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\exefile\shell\runas2\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Grant Admin Full Control"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
It doesn't work though. I still can't delete that Flash10p.ocx file when I right click on it and click on "Grant Admin Full Control".

Anyone have any ideas on how I can delete this Flash10p.ocx file?

Also, does anyone know how to make a new *.reg file that will remove whatever the "GrantAdminFullControl.reg" from above, added to my registry?
 

FishAk

Senior member
Jun 13, 2010
987
0
0
Why don't you simply boot to a Live CD of some type, and delete the file from there? Alternatively, you could take ownership, and give yourself permission through the properties inside Windows, but it's too easy to just use another OS.
 

Synomenon

Lifer
Dec 25, 2004
10,547
6
81
I have a copy of TheUltimateBootCD somewhere. Are there any utilities in that that will let me browse my SSD and delete this file?
 

FishAk

Senior member
Jun 13, 2010
987
0
0
It's been a long time since I used UBCD, but looking at their website, and the contents of the current iso, I see Agent Ransack, Eraser, and CCleaner. There are a couple file managers listed, including freeCommander, and Explorer2 as well.

Agent Ransack would find the file if you tell it the name, and it can delete it also- but I don't think securely. You could browse to the file with Eraser, and securely delete it.

You could also use one of the file managers to browse to it, and I'm sure they would mark it as unallocated space the same as Agent Ransack would.

Edit-->; Only use Eraser on a HDD. If the file is on an SSD, you can't securely erase it anyway, short of wiping the entire disk, so using a simple delete command is the best you can do . Wiping the file with Erase won't really hurt (it's just an extra write, unless you use the optional 35 passes), but since the tools can't see the actual physical spot on the disk that the file resides, the real location will not actually get wiped.
 
Last edited:

agsware

Junior Member
May 12, 2011
2
0
0
are you the owner of file? :'(
right click on the file>properties>security>advanced>owner
and take the ownership
than changing permissions
 
Last edited: