How to delete UNDELETABLE FILES! ***TIP***

Discussion in 'Windows 7' started by Matrix Leader, Aug 4, 2010.

  1. Matrix Leader

    Matrix Leader MDL Addicted

    Dec 8, 2009
    857
    175
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Matrix Leader

    Matrix Leader MDL Addicted

    Dec 8, 2009
    857
    175
    30
    I found the above steps a big saviour as I searched alot online and wasn't able to find a working guide. Even the UNDELETE program that I installed didn't work so this guide will prove handy then ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. burfadel

    burfadel MDL EXE>MSP/CAB

    Aug 19, 2009
    2,628
    3,835
    90
    #3 burfadel, Aug 4, 2010
    Last edited by a moderator: Apr 20, 2017
    You can automate that by using the following script (copy and paste into notepad and save as a .reg file):

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\runas]
    @="Take Ownership"
    "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\Directory\shell\runas]
    @="Take Ownership"
    "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"
    This can be modified to suit the desired task, you could even make several commands in addition to 'Take Ownership', and even have it under its own submenu in the context menu.

    I would acknowledge the person that originally wrote the script, but I have absolutely no idea where I got it from now! Its been replicated literally thousands of times and is a few years old.
     
  4. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,065
    270
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sam263

    sam263 MDL Novice

    Nov 20, 2009
    37
    8
    0
    You can try" Unlocker" ,free simple and effective .
     
  6. Matrix Leader

    Matrix Leader MDL Addicted

    Dec 8, 2009
    857
    175
    30
    Unlocker doesn't do the trick! I tried that before....did you even read my posts above, or are you just trying to post anything for the heck of it?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Matrix Leader

    Matrix Leader MDL Addicted

    Dec 8, 2009
    857
    175
    30
    You're most welcome :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. malvo26

    malvo26 MDL Novice

    Jun 11, 2008
    24
    6
    0
    Thanks a million Matrix Leader for the tip. It helped me solve a problem with outlook.pst changing from XP to Windows 7.
     
  9. Matrix Leader

    Matrix Leader MDL Addicted

    Dec 8, 2009
    857
    175
    30
    Glad I could've been of any assistance ;)

    Cheers
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Matrix Leader

    Matrix Leader MDL Addicted

    Dec 8, 2009
    857
    175
    30
    This has just helped me once more delete a file that was related to the Blackberry back up file that I created!

    I had an old backup file that I wanted to delete and wasn't able to! Thanks to this guide it fixed the issue with a breeze.

    Please make this a sticky mods :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. sam3971

    sam3971 MDL Guru

    Nov 14, 2008
    2,220
    303
    90
    Well...not to argue with you but I have used unlocker on even file that I could not delete even ones I mark with "Take Ownership" lol. It actually worked everytime for me. I had to reboot a couple of times but that is not big deal lol.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Matrix Leader

    Matrix Leader MDL Addicted

    Dec 8, 2009
    857
    175
    30
    Strange.....glad it worked for you though :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. sam3971

    sam3971 MDL Guru

    Nov 14, 2008
    2,220
    303
    90
    yea, I just wanted to point that out. Maybe it was fixed by a build update cause I have the latest x64 version here.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. blackranger

    blackranger MDL Senior Member

    Dec 28, 2009
    453
    30
    10
    #15 blackranger, Aug 27, 2010
    Last edited: Aug 27, 2010
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. sam3971

    sam3971 MDL Guru

    Nov 14, 2008
    2,220
    303
    90
    That is a good point but I personally think unlocker is good. Being a user of a Cloud-Security(KIS 2011 & N360 4.0) the peers give it good reviews so I have to say that it is probably good lol. BTW to clear things up I run dual boot and have one security suite on one system and the other on the other lol. :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. nabanit

    nabanit MDL Novice

    Aug 24, 2010
    2
    0
    0
    tell me one thing.....how can a file be Undeletable if it can be deleted!!!!!!!!!!!!
     
  17. blackranger

    blackranger MDL Senior Member

    Dec 28, 2009
    453
    30
    10
    Undeletable --> Deletable
    Undelectable = cannot be deleted w/o software or simply 1 or 2 clicks
    Deletable = can be deleted after getting the admin power, or when software is used, for example Unlocker.

    When you are deleting a file or folders but it fails, the unlocker assistant will pop up and ask for your judgement.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Deb_Rider

    Deb_Rider MDL Senior Member

    Aug 21, 2010
    417
    66
    10
    i also think unlocker is better than killbox...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. blackranger

    blackranger MDL Senior Member

    Dec 28, 2009
    453
    30
    10
    Sure, but I hate un-ticking the "new Bing bar" option and the Ebay shortcut! :angry:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...