Windows Server 2000/2003 Thread, Showing user profile sizes without taking ownership in Technical; Heya,
Is there a way of being able to see the user profiles folders sizes and contained files without taking ...
-
11th July 2011, 12:19 PM #1 Showing user profile sizes without taking ownership
Heya,
Is there a way of being able to see the user profiles folders sizes and contained files without taking ownership of the files and affecting users rights to their profile folders?
I can do it on an individual basis by taking ownership but this is long winded, basically our profiles are adding up to 50Gb on the server but i can't see who's the biggest user without taking ownership individually then i'm just guessing who's going to be the biggest.
Hope this makes sense!
Any thoughts?
-
-
IDG Tech News
-
11th July 2011, 12:22 PM #2
-
-
11th July 2011, 12:25 PM #3 
Originally Posted by
elsiegee40
Thanks but get the same as i do with windirstat - access denied because i don't have permissions without taking ownership
-
-
11th July 2011, 12:27 PM #4 Don't think there's any way to access the current profiles and keep the permissions, but there is a group policy setting for newly created profiles located at Computer Configuration\Administrative Templates\System\User Profiles "Add the Administrators security group to the roaming user profile share".
-
-
11th July 2011, 12:29 PM #5 
Originally Posted by
Pyroman
Heya,
Is there a way of being able to see the user profiles folders sizes and contained files without taking ownership of the files and affecting users rights to their profile folders?
I can do it on an individual basis by taking ownership but this is long winded, basically our profiles are adding up to 50Gb on the server but i can't see who's the biggest user without taking ownership individually then i'm just guessing who's going to be the biggest.
Hope this makes sense!
Any thoughts?
I know what you mean.
The default security is:
System: Full Control
Username: Full Control
Maybe you could write a routine to run a file utility (may like the one elsiegee40 suggested) as the SYSTEM account? This should be straightforward if you stick it in the scheduler and run the job as SYSTEM.
-
Thanks to jinnantonnixx from:
-
11th July 2011, 12:29 PM #6 You should have the administrators as a delegated permission on all user areas anyway, it is good practice for administration, then the users can be owners of their own files but you still have access to them regardless.
-
-
11th July 2011, 12:40 PM #7 
Originally Posted by
Jamo
You should have the administrators as a delegated permission on all user areas anyway, it is good practice for administration, then the users can be owners of their own files but you still have access to them regardless.
How do i go about adding permissions to the profiles folder? according to the properties of the profiles folder under security administrators group has full control, however when you go on the properties of a folder within the profiles folder there's nothing atall in the groups and user names
-
-
11th July 2011, 12:43 PM #8 I haven't tried it, but maybe a script that runs cacls to add administrators group to the profile folders?
Again, run as a task in scheduler under SYSTEM account.
If it works, it would neatly sidestep the disruption of taking ownership.
Worth a go, won't take long to see if it works.
CACLS <profile path> /E /T /C /G "Group to add (e.g Domain Admins)":F
Last edited by jinnantonnixx; 11th July 2011 at 12:45 PM.
-
Thanks to jinnantonnixx from:
-
11th July 2011, 12:58 PM #9 Yes I think retrospectively it would have to be done by script as the permission inheritence would have been broken by default when the profiles are created. I would start by adding the GPO setting suggested by Badders and then try running the script on a subset of folders so you know it is working before trying it on the live system
. Dont want users not being able to access there own files!!
-
-
11th July 2011, 01:25 PM #10 
Originally Posted by
jinnantonnixx
I haven't tried it, but maybe a script that runs cacls to add administrators group to the profile folders?
Again, run as a task in scheduler under SYSTEM account.
If it works, it would neatly sidestep the disruption of taking ownership.
Worth a go, won't take long to see if it works.
CACLS <profile path> /E /T /C /G "Group to add (e.g Domain Admins)":F
Is the :F at the end supposed to be a /F ?
Sorry, just looked at a cheat sheet for cacls i understand now it's :F
I'll try this out :-) Cheers
-
-
11th July 2011, 01:41 PM #11 I've managed to run Code:
CACLS <profile path> /E /T /C /G "Group to add (e.g Domain Admins)":F
on a test staff account and it's seemed to let me in but i didn't have to run it as SYSTEM i just put it in a batch file and ran it, should i be worried that i didn't have to run as SYSTEM?
-
-
11th July 2011, 01:42 PM #12 Let us know if it works. If it does, it'll be a good trick.
-
-
11th July 2011, 01:47 PM #13 
Originally Posted by
Pyroman
I've managed to run
Code:
CACLS <profile path> /E /T /C /G "Group to add (e.g Domain Admins)":F
on a test staff account and it's seemed to let me in but i didn't have to run it as SYSTEM i just put it in a batch file and ran it, should i be worried that i didn't have to run as SYSTEM?
As an administrator you will have permission to alter the security permissions on the folder. Running as a system account was meant as a workaround to the treesize program rather than for actually changing the permissions on the folders themselves.
-
-
11th July 2011, 01:55 PM #14 
Originally Posted by
Jamo
As an administrator you will have permission to alter the security permissions on the folder. Running as a system account was meant as a workaround to the treesize program rather than for actually changing the permissions on the folders themselves.
Ah okay kewl, in which case it works!
Just ran it in a batch file as i've said in my above post and it's worked fine, logged on the account i tested it on on one machine, created a folder on the desktop, logged off and logged on on another machine and the folder appears, no warnings about not finding profiles or anything like that so it would appear it's worked fine, i just get a little nervous when things work this easily! Wondering what it's going to break when i apply it to the whole profile folder (sods law)!! Might try it with a few select kids/teachers accounts i know get a lot of hammer and see if anyone complains!
-
-
11th July 2011, 02:55 PM #15 Treesizefree is great for sorting out the profile size problems... once you get the permissions sorted, you'll wonder why you didn't have it years ago!
-
SHARE:
Similar Threads
-
By nephilim in forum Windows 7
Replies: 19
Last Post: 22nd March 2012, 12:45 PM
-
By Henley_IT in forum Windows 7
Replies: 8
Last Post: 25th May 2011, 09:44 AM
-
By atfnet in forum Scripts
Replies: 2
Last Post: 6th May 2011, 05:23 PM
-
By sonofsanta in forum Licensing Questions
Replies: 17
Last Post: 15th February 2011, 09:47 AM
-
By WithoutMotive in forum MIS Systems
Replies: 17
Last Post: 1st December 2010, 01:48 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules