1. #1

    Take Ownership Multiple files, folders, subfolders

    Take Ownership Multiple files, folders, subfolders.


    I'm not talking about system files and I'm not talking about the system. please understand it!


    I am talking about user files such as text files, music, videos, pictures (partiton Non-System!)
    I repeat, I'm not talking about any system files!


    Menu Take Owner - I can only do this for one file or for multiple files, but I have to do it one by one and confirm with the Administrator permission.


    I want regular use of each file:
    COPY
    DELETE




    But for each such operation I have to confirm each action.

    What should be improved in the script, I would not have to confirm for each file.
    What to add in the function (Apply for each file, folder and subfolders)
    Select MANY folders and I want to make the "Ownership"... But not work.

    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"


    • Ad Bot

      advertising
      Beep.

        
       

  2. #2
    xilolee's Avatar
    Join Date
    Dec 2013
    Location
    World, Europe, Italy
    Posts
    2,192
    • specs System Specs
      • Manufacturer:
        XILOLEE.com
      • Model Number:
        XILO
      • Motherboard:
        ASROCK FM2A88M Pro3+ chipset A88X Bolton-D4
      • CPU:
        A10-7800, 4 CPU, 4 thr, 65/45W, FM2+, 28nm, Steamroller/Kaveri
      • Memory:
        10GB (Nanya and kingston ddr3-1333 9-9-9-24)
      • Graphics:
        Radeon R7 720MHz (8 GPU cores, integrated in CPU)
      • Sound Card:
        RealTek ALC662 (integrated in MB)
      • Hard Drives:
        Seagate ST500DM002-1BD142 500GB 7200RPM
      • Power Supply:
        SuperFlower 450W 80+ Platinum (SF-450P14PE)
      • Case:
        Sharkoon VG4-S
      • Cooling:
        Realtek RTL8111GR (NIC integrated in MB)
      • Display:
        Samsung SyncMaster SA100 LS22A100NS-EN
      • Operating System:
        Windows 10 Home/Standard x64

    Re: Take Ownership Multiple files, folders, subfolders

    Hi maki.


    All the following changes are obviously at your own risk.


    You should probably use takeown parameters /R /D Y and icacls parameters /T /Q.
    Read More:

    Therefore the registry script could become:
    Read More:


    Tested on W10 home x64 v1709 b16299
    Last edited by xilolee; 11-27-2017 at 07:17 PM.

  3. #3

    Re: Take Ownership Multiple files, folders, subfolders


    All the following changes are obviously at your own risk.



    I do not use anything that may result in data loss.
    I've lost a lot of data and more NO!

    Still looking for features in Windows 7 similar to Windows 10.
    Aplly All all [ON / ENABLED] and do not ask again.

  4. #4
    xilolee's Avatar
    Join Date
    Dec 2013
    Location
    World, Europe, Italy
    Posts
    2,192
    • specs System Specs
      • Manufacturer:
        XILOLEE.com
      • Model Number:
        XILO
      • Motherboard:
        ASROCK FM2A88M Pro3+ chipset A88X Bolton-D4
      • CPU:
        A10-7800, 4 CPU, 4 thr, 65/45W, FM2+, 28nm, Steamroller/Kaveri
      • Memory:
        10GB (Nanya and kingston ddr3-1333 9-9-9-24)
      • Graphics:
        Radeon R7 720MHz (8 GPU cores, integrated in CPU)
      • Sound Card:
        RealTek ALC662 (integrated in MB)
      • Hard Drives:
        Seagate ST500DM002-1BD142 500GB 7200RPM
      • Power Supply:
        SuperFlower 450W 80+ Platinum (SF-450P14PE)
      • Case:
        Sharkoon VG4-S
      • Cooling:
        Realtek RTL8111GR (NIC integrated in MB)
      • Display:
        Samsung SyncMaster SA100 LS22A100NS-EN
      • Operating System:
        Windows 10 Home/Standard x64

    Re: Take Ownership Multiple files, folders, subfolders

    I tried it on a folder and this is the result (filenames changed):
    SUCCESS: The file (or folder): "E:\Super**" now owned by user "XILO-PC\Xilo".
    SUCCESS: The file (or folder): "E:\Super**\Super**1x1.avi" now owned by user "XILO-PC\Xilo".
    SUCCESS: The file (or folder): "E:\Super**\Super**1x2.avi" now owned by user "XILO-PC\Xilo".
    SUCCESS: The file (or folder): "E:\Super**\Super**1x3.avi" now owned by user "XILO-PC\Xilo".
    SUCCESS: The file (or folder): "E:\Super**\Super**1x4.avi" now owned by user "XILO-PC\Xilo".
    SUCCESS: The file (or folder): "E:\Super**\Super**1x5.avi" now owned by user "XILO-PC\Xilo".
    SUCCESS: The file (or folder): "E:\Super**\Super**1x6.avi" now owned by user "XILO-PC\Xilo".
    SUCCESS: The file (or folder): "E:\Super**\Super**1x7.avi" now owned by user "XILO-PC\Xilo".
    Successfully processed 8 files; Failed processing 0 files
    Press any key to continue . . .
    Last edited by xilolee; 11-27-2017 at 07:19 PM.

Similar Threads

  1. How to grant Administrator rights for files and folders?
    By maki in forum Windows 7 | Windows Vista
    Replies: 1
    Last Post: 11-28-2017, 04:52 PM
  2. Restore (Missing/deleted) files/folders
    By bobbymcgee in forum Windows 10
    Replies: 10
    Last Post: 08-17-2016, 05:19 AM
  3. [SOLVED] Corrupted Files, wrong processor, ownership issues
    By Guardian in forum Windows Update
    Replies: 29
    Last Post: 10-24-2014, 03:54 AM
  4. Folders containing .dll files placed on desktop after 8.1 update
    By Cory517 in forum Windows 8 | Windows RT
    Replies: 1
    Last Post: 10-11-2014, 11:33 AM

Log in

Log in