Page 2 of 2 FirstFirst 12

  1. Joined : Aug 2015
    San Francisco, California USA
    Posts : 806
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
       22 Oct 2015 #11

    Thanks for the answer but what does one put in for the %Userdomain% part if the computer is not part of the domain. I noticed that when one does the properties -> securities -> advanced and adds one to the user/groups will full control, it still would not change permissions for all the files and folders under it as some files and folders seem to require doing it directly.
      My System SpecsSystem Spec

  2.    22 Oct 2015 #12

    Almighty1 said: View Post
    Thanks for the answer but what does one put in for the %Userdomain% part if the computer is not part of the domain. I noticed that when one does the properties -> securities -> advanced and adds one to the user/groups will full control, it still would not change permissions for all the files and folders under it as some files and folders seem to require doing it directly.
    If you are not in a domain %userdomain% gives the name of your local PC so you can leave it as it is - you actually type in %userdomain%\%username% (with all the % signs) - no need to substitute anything. You only need change the bit in red.

    For the GUI there is a tick box which says something like "replace all child items permissions" which you would need to tick. The is the same as the /T on icacls and /r on takeown both of which mean to apply to all objects contained within the directory you specify and not just the directory object itself.
      My System SpecsSystem Spec


  3. Joined : Aug 2015
    San Francisco, California USA
    Posts : 806
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
       22 Oct 2015 #13

    Ah so basically, I should type it like this assuming I want it to be owned by user bob...

    takeown /f "D:\Problem Directory" /r
    icacls "D:\Problem Directory" /grant "%USERDOMAIN%\bob"F) /t

    In the GUI, I did check enable hierarchy but then it tries to change everything and then will always get stuck on some files or folders and I have to manually change those on my own.
      My System SpecsSystem Spec

  4.    22 Oct 2015 #14

    Almighty1 said: View Post
    Ah so basically, I should type it like this assuming I want it to be owned by user bob...

    takeown /f "D:\Problem Directory" /r
    icacls "D:\Problem Directory" /grant "%USERDOMAIN%\bob"F) /t
    Sorry I was updating my answer above while you were typing The cmd processor replaces %userdomain% and %username% with their real values at runtime so you don't need to change them.

    takeown is correct.

    icacls you can type in any of the following exactly as the are

    Code:
    icacls      "D:\Problem Directory" /grant "%USERDOMAIN%\%USERNAME%":(F) /t
    icacls      "D:\Problem Directory" /grant "%USERDOMAIN%\bob":(F) /t
    or even
    icacls      "D:\Problem Directory" /grant bob:(F) /t
      My System SpecsSystem Spec


  5. Joined : Aug 2015
    San Francisco, California USA
    Posts : 806
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
       22 Oct 2015 #15

    I see what you mean, so basically, the %username% is a variable that will just be the user who typed the command if I understand this correctly.

    And what I meant was in the GUI, I did enable child permissions except I noticed there will be some child files or folders where it says I don't have permission and then I will have to go change those manually.
      My System SpecsSystem Spec


  6. Joined : Aug 2015
    San Francisco, California USA
    Posts : 806
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
       22 Oct 2015 #16

    I gave the two commands a shot and it works way better than the GUI as the GUI will always not be able to change the ownership on some subfolders when I goto the screen that has the enable to all child and stopped on the problem ones until I hit cancel. Now, I have a question, I noticed after going to the two commands for C:\Program Files\WindowsApps for example, the new owner has no permissions in the Allow Column other than the Special Permissions. The Account Knwon (S-XXXX) user has Read & Execute, List Folder Contents, and Read Permissions.

    Is there a command line to give it Full Control? Also, I noticed on my system, for example, it is listing both the username with my Microsoft Login and a Account Unknown (S-xxxxx) and I basically have to delete the Account Unknown. I can goto the username with my Microsoft login and check full control then Apply and this is what happens when it tries to apply to child files/folders.

    Click image for larger version. 

Name:	2015-10-22_15-06-59.jpg 
Views:	16 
Size:	47.6 KB 
ID:	44128
      My System SpecsSystem Spec


  7. Joined : Sep 2015
    Posts : 33
    W10-pro + W7-pro + XP-pro
       09 Jan 2016 #17

    Back again and many trials/hours/days older.
    I found that the ownership of files->folders->partitions is increasingly more important as rights are permitted top->down. The owner can be found in "advanced". This means that a file can behave completely different after changing an higher folder or even the partition ownership. Still do not understand it completely but the owner SYSTEM (W7/W10 ??) is one to keep in mind.
    For instance: found on a used 2,5inch drive (that in earlier life was an active W7 startupdisk in a laptop) now connected by USB 2.0 that copying files for backup only for some files asked if they needed to be replaced. About 4 Gb files and folders were copied over and over again skipping control. Decided that the ownership of those files did not allow Windows to check/change settings. In the end I took ownership of the whole USB backup partition PLUS subfolders and Windows was changing settings for all folders and files for about 10 minutes. BUT even than some files in copies of installation CD/DVD's were not permitting to change settings. No idea why as I could see any connection between filename nor extension. The result however was that the weekly needed backup by hand of document/photo folders/files now was responding as expected. Only the new or saved after changing ones were copied and all others neglected. A backup is now done in 5 minutes instead of an hour.

    By the way W10 is behaving bad again. It closed down after messing up my HP printer on LPT1. In the internet I found this behavior over and over. W10 is pushing me to buy a new printer with USB/LAN/WIFI supported one that in the end does the same as my LPT-version.
    Also read that infrared ports are shut down too. Why am I so glad to have W7 still running in multiboot??????
    To discover that Linux after ugrading from Mint v13 to v17 on the same multiboot is behaving the same way......................
    So for as long as possible (unless MS decides different) I will use W7 and keep W10 asleep as only W7 offers me to be in command on which update will be installed or uninstalled.
      My System SpecsSystem Spec


 
Page 2 of 2 FirstFirst 12


Similar Threads
Thread Forum
Change User Account Admin rights
I am the sole user of this computer. The control panel tells me I am an administrator but when I go into my account it says I am a standard user and won't let me change it to Administrator. I just want to manage my own computer and - for...
User Accounts and Family Safety
How to restrict standard user access to folders
On my secondary hard drive, I have some folders that I don't want standard users to see or access. How can I go about doing this? Thanks!
User Accounts and Family Safety
Solved Windows 10 made two user folders
After fresh installation of windows 10, windows decide to make one more username folder. My default user folder is Jugo, and the new one is Jugo.DESKTOP-RUHDOGV, dont know why windows made it. I know that is not made because of MS account,...
User Accounts and Family Safety
Deleted User Folders
I have two users whose accounts have been deleted but their folders under C Users are re-created on restart after deleting them. Hang over from W7 but can anyone help me permanently delete the in W10?
General Support
Deleted User Folders
I have two users whose accounts have been deleted but their folders under C Users are re-created on restart after deleting them. Hang over from W7 but can anyone help me permanently delete the in W10?
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 01:27.
Find Us
Twitter Facebook Google+



Windows 10 Forums