No access to folders

Discussion in 'PC' started by robbieeparker14, Nov 21, 2023.

  1. robbieeparker14

    robbieeparker14 Producer

    Joined:
    Nov 8, 2015
    Messages:
    274
    Likes Received:
    90
    Location:
    Va,USA
    Hi all.

    Somehow i have locked myself out of almost 2tb of kontat libraies sitting on a external drive of mine. the permissions were changed but another pc of mine before i got rid of it. this must of been by accident because its not a security measure i useally take.

    anyway, ive been on the internet for a few hours now and i cannot get these permissions changed.

    i can get into the harddrive, see the folders within but cannot go any further than that.

    windows 11.
     
  2.  
  3. \|/dave\|/

    \|/dave\|/ Member

    Joined:
    Feb 26, 2023
    Messages:
    31
    Likes Received:
    13
    hi, I rely on the following, cut & paste into a .REG file, double-click REG file, right-click your folder and run "Take Ownership":

    -------------cut starting below
    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"

    [HKEY_CLASSES_ROOT\Folder\shell\runas]
    @="Take Ownership"
    "NoWorkingDirectory"=""

    [HKEY_CLASSES_ROOT\Folder\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"
    --------------end cut above
     
    Last edited: Nov 21, 2023
  4. DEGRAD

    DEGRAD Ultrasonic

    Joined:
    Oct 2, 2023
    Messages:
    141
    Likes Received:
    22
    Use this.
     

    Attached Files:

  5. \|/dave\|/

    \|/dave\|/ Member

    Joined:
    Feb 26, 2023
    Messages:
    31
    Likes Received:
    13
    hi, whatever happened with your access issue?
     
Loading...
Loading...