Page 2 of 2 FirstFirst 12
  1.    04 Aug 2015 #11
    Join Date : Jul 2015
    Posts : 267
    Windows 10

    Quote Originally Posted by TechnoMage View Post
    The program "Take Ownership" is getting old and not as efficient the day it was written.
    I use the New and Improved version called "Grant Admin Full Control".
    ?


    I presume you had no issues using Windows 10. Thanks
      My ComputerSystem Spec
  2.    05 Aug 2015 #12
    Join Date : Apr 2014
    Posts : 3,361
    W10 Pro x64/W7 Ultimate x64 dual boot main - W10 Pro Insider Preview/W7 Pro x64 - remote pc

    Quote Originally Posted by Corelogik View Post
    I can confirm AveYo's account. I also had 3 files and 2 folders in the Windows.old folder that simply would not delete. Even after drilling down and 'taking ownership' multiple times.

    What I ended up doing was booting from a live Linux CD and delete from there. This issue rarely happens but it does in fact sometimes happen.

    YMMV.

    ~sent from Core's 'droid.
    I've never had any problem manually note not when using the DiskCleanUp option which at times can remove other files and folders around the drive you may need to keep! No Thank! I prefer to verify first what does get dumped as well as not simply doing in the Windows.old if there are still files in there you want to keep including program files for stand alone program that come with their installers where you may only have to simply copy those folders which may also include configuration or with pc games saved game files back to the Programs or Programs(x86) they were in but now copied to the new Windows install.

    When nothing important like a first full install attempt fails on a clean drive you can simply nuke everything obviously when booting live from a Windows dvd as well simply using Disk Part at the command prompt for a full wipe if not manually arriving at the C: root to enter the deltree command there.

    Quote Originally Posted by TechnoMage View Post
    The program "Take Ownership" is getting old and not as efficient the day it was written.
    I use the New and Improved version called "Grant Admin Full Control".

    I have to use that often on my system(s) so it's one of the first programs I load, when setting up a new PC or a PC with a new OS.

    As for getting rid of the "Windows.old" folder after a Win-10 upgrade, that can be done quite simply in the Disk Cleanup program that comes with every version of windows since.....well, a very long time.

    I dump that worthless Windows.old folder on every system I set up.
    Another elephant in the room is the Hiberfil.sys file created by "Hibernation". so I disable that beast too. No harm, no foul!

    Cheers mates!


    PS: I read somewhere, that if you just ignore that Windows.old folder, it will go away all by itself in just a few weeks. ???
    The TakeOwnship tweak was originally written for 2000/XP but has worked out quite well right through Vista and 7 sa well as having been run on the 8 Customer Preview back in '12. The too often overlooked reason some files won't delete right away after taking ownership is simple. You forgot to go into the properties screen and uncheck the "Read Only" box and then click the Apply button to watch the file or folder attributes are changed. Once done say good bye to file or folder!

    As the "Grant Admin Full Control" reg tweak that amounts to the same thing only under a different name. The system registy hasn't changed any in it's basic structure since the Legacy days when everything afterwards with 2000, XP, Vista, 7, 8 and 8.1, and now 10 still use the regedit command and still see the exact same type of structure just as the 32bit remains the 32bit kernel and the 64bit remains the 64bit kernel. The entries are slightly different being the only difference simply when someone else came along and changed the name for the same type of reg mod.

    Speaking of which people were reporting problems when going to add that one while the TakeOwnership download comes complete with it's own remover! Here's one such problem indicated over at SevenForums where the solution pointed to was addressed in guide linked to the VistaForums on how to add the command without downloading any reg mod to start with.
    GrantAdminFullControl REG problem


    Now for the DiskCleanUp tool in 10 I would expect to most planning to run that right after a full clean install anyways to clear off all of the temp clutter the Windows installer is known for! As for an upgrade where you have all your personal files and apps from the previous version found intact and wanted on 10 you have to tweak the DC a little so it won't nuke any of those since the tool is intended to go over things on the entire drive as well. You wouldn't want to that run automatically when other things you want could be at risk but run it yourself when you can go over things first to pick and choose what gets wiped.
      My ComputerSystem Spec
  3.    05 Aug 2015 #13
    Join Date : Aug 2015
    Posts : 120
    Windows 10 (duh)

    Quote Originally Posted by Corelogik View Post
    As for the 'Take Ownership', it's not a 'program' or an 'app', it's a simple registry edit. Can be implemented by importing the already written registry entry from a .reg file. No external programs or apps need. It's just turning on a built in Windows function, that is disabled by default.
    Next time, please, do open that .reg file in notepad
    Code:
    @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
    Text in bold represents just that, programs from System32. Most of commands are actually stand-alone programs (i.e. find.exe ping.exe tracert.exe)

    Forgot to mention Disk Cleanup was also failing! And having a really small partition meant I had to get rid of windows.old ~30GB fast, before starting to install games for testing (Dota ftw!)

    Also I was using Total Commander, setup to delete read-only files. It's like I've said first, Defender must have been locking files. Or other process.
      My ComputerSystem Spec
  4.    05 Aug 2015 #14

    Biggest fail of Windows 8 and 10 is this nonsense with admin rights.
      My ComputerSystem Spec
  5.    05 Aug 2015 #15
    Join Date : Apr 2014
    Posts : 3,361
    W10 Pro x64/W7 Ultimate x64 dual boot main - W10 Pro Insider Preview/W7 Pro x64 - remote pc

    Quote Originally Posted by Corelogik View Post
    I can confirm AveYo's account. I also had 3 files and 2 folders in the Windows.old folder that simply would not delete. Even after drilling down and 'taking ownership' multiple times.

    What I ended up doing was booting from a live Linux CD and delete from there. This issue rarely happens but it does in fact sometimes happen.

    YMMV.

    ~sent from Core's 'droid.
    Quote Originally Posted by AveYo;317827[B
    [/B]]

    Forgot to mention Disk Cleanup was also failing! And having a really small partition meant I had to get rid of windows.old ~30GB fast, before starting to install games for testing (Dota ftw!)

    Also I was using Total Commander, setup to delete read-only files. It's like I've said first, Defender must have been locking files. Or other process.
    First what is found in the Take Ownership reg file when opened with NotePad is a bit more detailed then that.

    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"
    Of course the mod is intended to insure that the name of the new item found in the right click menu is that of the mod itself. I imagine you could use any name in that line! Let's see "Goober This"?!

    As far as running into apparent "HEADACHES" that comes as no surprise if you didn't get the patch with 1000 fixes? some blog was pointing to. Here the initial upgrade as upgrades over tend to be was Buggy! and neither the sound card, tuner card, or av program even would go on! Once the second upgrade was seen to the beta not 2015 version but beta for the 2016 version I had been looking at went on in a heart beat!

    Get the big picture? For the time being the now working upgrade is presently on simply to get to know the new version a bit better and then dumpling it for a nice, clean HEADACHE FREE type of "Clean Install of W10"! Now doesn't that sound a bit more pleasant?
      My ComputerSystem Spec
  6.    30 Oct 2015 #16
    Join Date : Aug 2015
    Posts : 5
    Windows 10 home 64b

    Solution


    I've came across with a smart solution from a good samaritan. Here I copy HIS solution cause this was driving me crazy

    SOLUTION:

    I am not sure why this happens but there is a workaround.
    To take control of the folder containing the undeletable create a text file called “delete.bat” and add the following lines to it:
    SET DIRECTORY_NAME="C:\Locked Directory"
    TAKEOWN /f %DIRECTORY_NAME% /r /d y
    ICACLS %DIRECTORY_NAME% /grant administrators:F /t
    PAUSE
    You will need to change the directory path to match your requirements e.g. “C:\Locked Directory” to “C:\Delete Me”.
    Right click on the file “delete.bat” select “Run As Administrator” and you should now have full control of the directory and all sub directories meaning you can do what you wish with them.
      My ComputerSystem Spec
  7.    30 Oct 2015 #17
    Join Date : Aug 2015
    Posts : 120
    Windows 10 (duh)

    Quote Originally Posted by pstrusi View Post
    I've came across with a smart solution from a good samaritan. Here I copy HIS solution cause this was driving me crazy

    SOLUTION:

    I am not sure why this happens but there is a workaround.
    To take control of the folder containing the undeletable create a text file called “delete.bat” and add the following lines to it:
    SET DIRECTORY_NAME="C:\Locked Directory"
    TAKEOWN /f %DIRECTORY_NAME% /r /d y
    ICACLS %DIRECTORY_NAME% /grant administrators:F /t
    PAUSE
    You will need to change the directory path to match your requirements e.g. “C:\Locked Directory” to “C:\Delete Me”.
    Right click on the file “delete.bat” select “Run As Administrator” and you should now have full control of the directory and all sub directories meaning you can do what you wish with them.
    How about you read posts before replying, because that's exactly what Take Ownership does (actually, a lot better since it does not need silly stuff like creating files, editing, hard coded paths etc.).

    Was it not already clear that Take Ownership is only useful as a first-step against the rights management fiasco Windows does, and won't help with actually locked files because of some process using them? For those, only something like LockHunter or FileASSASSIN would stand a chance. I find LockHunter better overall, but there are cases where FileASSASSIN can unlock more.

    Still, booting from the setup disk, launching a file manager like totalcmd and do deletion there is the foolproof solution.
      My ComputerSystem Spec
  8.    30 Oct 2015 #18
    Join Date : Aug 2015
    Spring Valley
    Posts : 559
    Windows 10 Pro/Windows 7 Ultimate

    Quote Originally Posted by mibaup View Post
    Hello,
    I try to completely delete a folder from C:\Program Files (x86), after I uninstalled the program it contained, but I get this message:
    "You require permission from administrators to make changes to this folder"
    But I am the administrator, no?
    Thanks

    I usually use "Unlocker Pro" to do this, you can get it from Major Geeks, etc. If you ever download it, shut off your AV programs. When installing, use "Custom Install" and de-select all "Delta Toolbar" items and install it, then you'll be able to right click on the folder, choose "Unlocker" and it brings up a control panel with "Move/Delete" functions.
      My ComputerSystem Spec
  9.    30 Oct 2015 #19
    Join Date : Apr 2014
    Posts : 3,361
    W10 Pro x64/W7 Ultimate x64 dual boot main - W10 Pro Insider Preview/W7 Pro x64 - remote pc

    Booting up in Safe Mode also allows more options without any downloads! Or you can boot live from 10 media and open the command prompt option to search and destroy since nothing including any firewall or av program will be running then.
      My ComputerSystem Spec
  10.    06 Mar 2017 #20
    Join Date : Aug 2015
    Posts : 13
    Windows 10

    Quote Originally Posted by pstrusi View Post
    I've came across with a smart solution from a good samaritan. Here I copy HIS solution cause this was driving me crazy

    SOLUTION:

    I am not sure why this happens but there is a workaround.
    To take control of the folder containing the undeletable create a text file called “delete.bat” and add the following lines to it:
    SET DIRECTORY_NAME="C:\Locked Directory"
    TAKEOWN /f %DIRECTORY_NAME% /r /d y
    ICACLS %DIRECTORY_NAME% /grant administrators:F /t
    PAUSE
    You will need to change the directory path to match your requirements e.g. “C:\Locked Directory” to “C:\Delete Me”.
    Right click on the file “delete.bat” select “Run As Administrator” and you should now have full control of the directory and all sub directories meaning you can do what you wish with them.
    I know this is an old thread, but just in case you are still around I want to thank you for this solution. Finally found something that worked and it's so simple. Thanks a million.
      My ComputerSystem Spec

 
Page 2 of 2 FirstFirst 12


Similar Threads
Thread Forum
Solved Ok to delete $Windows10.~BT folder after install?
Is it ok to delete $Windows10.~BT folder after install? Mine had 6.29Gb. :zip:
General Support
Solved Folder on Documents & Picture permission keeps reverting back
What's wrong with this PC when using Windows 10? This is happens when I'm fresh boot like Shut Down & turn on again/restart the PC. Documents, Picture, Music, & all of them! They keep revert back to without my name & access it to Full Control!...
General Support
Delete Windows~BT folder before upgrade
Hi, I have downloaded the Windows 10 Pro ISO using Media Creation Tool and I wanted to know if it is safe to delete the Windows~BT folder before doing the upgrade. Will it cause some mess with the upgrade process if I delete it or just to leave...
General Support
Solved Can I delete Windows.old folder ?
Can I delete Windows.old folder ? and is it any important file inside that folder ? and where can I find my device manager ? :really:
General Support
Solved How do you delete Windows.old folder after update?
Insider updates from 10130 to 10158 to 10159 to 10162 in fairly quick succession, and tried to delete Windows.old. After an age at 98%, then having to manually skip a load of stuff, it still seems as full as ever. Is there an easy way to remove the...
General Support
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:26.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums