Windows Server 2012 Thread, Home Folder Ownership in Technical; Hi,
I've just re-enabled Quotas on my Server 2012 and noticed that loads of home areas were using 0%. This ...
25th September 2013, 01:51 PM #1
Home Folder Ownership
I've just re-enabled Quotas on my Server 2012 and noticed that loads of home areas were using 0%. This means that when the data was robocopied across the files and folders have lost ownership permissions.
Our Home folders are structured as following:
Domain Administrator has ownership of all the top level folders.
Is there a feature in Server 2012 that will set ownership of the folder to what the folder is named? Or alternatively does anyone have any scripts that will do this.
Last edited by linkazoid; 25th September 2013 at 01:53 PM.
25th September 2013, 02:05 PM #2
The little utility chown.exe will do this for you, with this batch script:
Place chown.exe and the batch file in each root directory, and run it - it sets ownership to the folder name. It's ace, we run it every year when new users are created as the utility we use does not set ownership automatically.
for /D %%i in (*) do (
chown -r %%i "%%i\*.*"
2 Thanks to 3s-gtech:
CHR1S (26th September 2013), linkazoid (25th September 2013)
25th September 2013, 04:03 PM #3
You have saved me hours of work!
I've resolved it all in 30 mins with your script and clear instructions above.
26th September 2013, 02:17 PM #4
I have this running but it seems to change nothing. What am I missing?
26th September 2013, 02:47 PM #5
Do you have chown.exe from CHOWN Free Download in the same folder?
Thanks to linkazoid from:
CHR1S (26th September 2013)
26th September 2013, 02:55 PM #6
I have a GNU version, I will try that one instead
Edit - that version seems to be better. Lots of access denied messages now. hmmm
Edit 2 - Ran it in elevated powershell instead of elevated cmd and it worked great.
Last edited by CHR1S; 26th September 2013 at 03:02 PM.
26th September 2013, 03:02 PM #7
Make sure that the user you're running the program as has Full Control on the root folder and all sub folders to make sure it runs correctly.
By TBlax in forum Windows Server 2008 R2
Last Post: 11th July 2013, 12:58 PM
By Bertv in forum Windows Server 2000/2003
Last Post: 17th November 2011, 01:01 AM
By jdibsdale in forum Windows
Last Post: 31st March 2010, 04:13 PM
By bwallman in forum How do you do....it?
Last Post: 20th December 2007, 05:31 PM
Last Post: 30th May 2006, 04:37 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)