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

Page 2 of 7 FirstFirst 1234 ... LastLast

  1. Posts : 23,638
    64-bit Windows 10 Pro build 16362
    Thread Starter
       26 Dec 2015 #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 ComputersSystem Spec


  2. Posts : 18
    Windows 10 64-bit "Big Shit"
       27 Dec 2015 #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 ComputerSystem Spec


  3. Posts : 23,638
    64-bit Windows 10 Pro build 16362
    Thread Starter
       27 Dec 2015 #12

    That's great news Neophile. I'm glad it could help.
      My ComputersSystem Spec

  4.    08 Jan 2016 #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 ComputerSystem Spec


  5. Posts : 23,638
    64-bit Windows 10 Pro build 16362
    Thread Starter
       08 Jan 2016 #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 ComputersSystem Spec

  6.    08 Jan 2016 #15

    Brink said: View Post
    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 ComputerSystem Spec


  7. Posts : 23,638
    64-bit Windows 10 Pro build 16362
    Thread Starter
       08 Jan 2016 #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 ComputersSystem Spec

  8.    09 Jan 2016 #17

    Brink said: View Post
    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 ComputerSystem Spec

  9.    09 Jan 2016 #18

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

    Thanks

    Bye
      My ComputerSystem Spec


  10. Posts : 23,638
    64-bit Windows 10 Pro build 16362
    Thread Starter
       09 Jan 2016 #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 ComputersSystem Spec


 
Page 2 of 7 FirstFirst 1234 ... LastLast

Related Threads
How Add or Remove Folders from This PC in Windows 10 The This PC window includes a Folders group that displays a linked 3D Objects, Desktop, Documents, Downloads, Music, Pictures, and Videos folder from the current user account's...
How to Show Hidden Files, Folders, and Drives in Windows 10 Hidden files, folders, and drives do not show by default in Windows. Windows protected system files (ex: desktop.ini files) are hidden by default. You can also manually hide a file or...
How to Add or Remove Folders on Start List in Windows 10 The Start menu in Windows 10 has a Start list that you can customize which folders appear in the list. You can add or remove the File Explorer, Settings, your Documents, your Downloads,...
I'm running VBox 5.0 on Windows 8.1 and have created VMs for Windows 7 and Windows 10 release 10240. In both VMs I have installed Visual Basic 6 (VB6). Everything is working fine except for one strange difference. When running the Windows 7 VM, I...
Hi everyone, I've noticed that whenever I plug in a usb thub stick or hard drive Windows 10 (Build 9879) is automatically creating empty Videos, Music, Downloads etc folders everytime. This is quite annoying, anyone know how to turn this off?...

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 16:01.
Find Us