Change Owner of File, Folder, Drive, or Registry Key in Windows 10  

Page 2 of 10 FirstFirst 1234 ... LastLast

  1. Posts : 68,657
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #10

    That's ok, I just thought you meant a normal administrator account.

    I found this below that you might see if the 4th post may help you with this as well.

    https://social.technet.microsoft.com...w7itproinstall

    I had the same problem trying to edit CurrentControlSet/Enum/USB. I tried all sorts of permission and ownership changes without success. I finally got it to work by using the following command

    psexec -i -d -s c:\windows\regedit.exe

    psexec is available from Microsoft here

    http://technet.microsoft.com/en-us/s.../bb897553.aspx

    This gave me full access to the registry. You should definitely be careful with this sort of access.

    For me, my USB to serial device wasn't working any more. I wanted to remove the registry entries for it in Enum/USB. After deleting them with the above method, I plugged in the USB to serial adapter and it started working again. I'm running Win7 PRO.
      My Computers


  2. Posts : 29
    Windows 10 64-bit "Big Shit"
       #11

    GREAT, Brink! It finally worked. I read that thread at Technet and downloaded PsTools.
    First I tried the batch file to avoid difficulties, as recommended on a post about the middle of that thread, but it gave me an error:
    Couldn't install PSEXESVC service:
    Access is denied.

    Then, I tried the normal direct way on an elevated command prompt and Regedit opened righy away. I didn't have to use permissions and could delete that key directly from its context menu. It couldn't be easier. From what I read it would not be possible to change any security setting or delete the key with that Owner Rights entry. It was the same problem the thread starter had, even if with another key.

    Thank you very much for your great and helpful advices.
      My Computer


  3. Posts : 68,657
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #12

    That's great news Neophile. I'm glad it could help. :)
      My Computers


  4. Posts : 307
    Windows 10
       #13

    Hi

    I installed Windows ADK 10 v1511 on Windows 10 v1511 Enterprise 64 bit.

    I typed the following commands:

    Code:
    Dism /Apply-Image /ImageFile:"<wim_File_Path>\install.wim" /Index:1 /ApplyDir:"<Apply_Directory_Path>" /Verify /CheckIntegrity
    Dism /Capture-Image /ImageFile:"<Windows_Files_Path>\sources\install.wim" /CaptureDir:"<Apply_Directory_Path>" /Name:"<Edition_name>" /Description:"<Description_name>" /Compress:max /Verify /CheckIntegrity
    Now, knowing that some directories and files have the TrustedInstaller or System user as owner, what are the commands that allows to completely remove the entire content of the <Apply_Directory_Path> directory?

    Thanks

    Bye
      My Computer


  5. Posts : 68,657
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #14

    Hello Balubeto, :)

    You could use the command from step 4 in OPTION THREE to change the owner of the directory and contents.

    https://www.tenforums.com/tutorials/3...html#option3s4

    Afterwards, use the command from step 4 in OPTION ONE below to set permissions.

    Permissions - Allow or Deny Access to Users and Groups in Windows 8
      My Computers


  6. Posts : 307
    Windows 10
       #15

    Brink said:
    Hello Balubeto, :)

    You could use the command from step 4 in OPTION THREE to change the owner of the directory and contents.

    https://www.tenforums.com/tutorials/3...html#option3s4

    Afterwards, use the command from step 4 in OPTION ONE below to set permissions.

    Permissions - Allow or Deny Access to Users and Groups in Windows 8
    I tried this command sequence

    Code:
    icacls "<Apply_Directory_Path>" /grant "Administrators":F /T /C
    icacls "<Apply_Directory_Path>" /setowner "Administrators" /T /C
    pushd "<Apply_Directory_Path>" && ( rd /S /Q "<Apply_Directory_Path>" 2>nul & popd )
    but it does not work because the first command can not access some directories or files since this command does not have access to these directories/files or it does not find them. Why?

    Thanks

    Bye
      My Computer


  7. Posts : 68,657
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #16

    You may need to manually take ownership of the folder or file that it cannot access instead.

    Using the "Take Ownership" context menu can help make this easier.

    https://www.tenforums.com/tutorials/3...dows-10-a.html
      My Computers


  8. Posts : 307
    Windows 10
       #17

    Brink said:
    You may need to manually take ownership of the folder or file that it cannot access instead.

    Using the "Take Ownership" context menu can help make this easier.

    https://www.tenforums.com/tutorials/3...dows-10-a.html
    Excuse but, from the Command Prompt, it is possible to take ownership of these directories and files gaining full control over them? If so, how do I do this?

    Thanks

    Bye
      My Computer


  9. Posts : 307
    Windows 10
       #18

    I also noticed that, in this directory structure, there are also some symbolic links and not.

    Thanks

    Bye
      My Computer


  10. Posts : 68,657
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #19

    The commands you already tried were for changing the owner and permissions to take ownership. You may have to delete it and start over instead.
      My Computers


 

Tutorial Categories

Change Owner of File, Folder, Drive, or Registry Key in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
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 11:48.
Find Us




Windows 10 Forums