+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
Windows Server 2000/2003 Thread, Showing user profile sizes without taking ownership in Technical; Originally Posted by Pyroman Ah okay kewl, in which case it works! Just ran it in a batch file as ...
  1. #16
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,365
    Thank Post
    66
    Thanked 178 Times in 150 Posts
    Rep Power
    62
    Quote Originally Posted by Pyroman View Post
    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!
    Should be all good Just make sure that permissions are only added and none are taken away! You should end up with the administrators group having full control but the owner shoudl remain as the current owner of the profile itself

  2. #17
    Pyroman's Avatar
    Join Date
    Sep 2007
    Posts
    1,287
    Thank Post
    465
    Thanked 156 Times in 115 Posts
    Rep Power
    75
    Quote Originally Posted by elsiegee40 View Post
    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!
    It looks pretty good, cheers, currently using windirstat which has the bonus of bring about 630kb

  3. #18
    Pyroman's Avatar
    Join Date
    Sep 2007
    Posts
    1,287
    Thank Post
    465
    Thanked 156 Times in 115 Posts
    Rep Power
    75
    Quote Originally Posted by Jamo View Post
    Should be all good Just make sure that permissions are only added and none are taken away! You should end up with the administrators group having full control but the owner shoudl remain as the current owner of the profile itself
    Cheers, just checked that it says owner is still the user of the profile so it all looks good, going to roll it out overnight to a select group of users and see what happens. =D thanks for all your help guys, i've thanked posts!

  4. #19
    Pyroman's Avatar
    Join Date
    Sep 2007
    Posts
    1,287
    Thank Post
    465
    Thanked 156 Times in 115 Posts
    Rep Power
    75
    Pants! It's stopped working, tested it on 1 profile, then all i did was change the profile from d:\profiles\testprofile to d:\profiles\anothertestprofile and it's coming up with

    Code:
    C:\>permissions.bat
    
    C:\>CACLS D:\PROFILES\testaccount /E /T /C /G "Domain Admins":F
     ACCESS_DENIED: D:\PROFILES\testaccount
    The filename, directory name, or volume label syntax is incorrect.
    
    C:\>permissions.bat
    
    C:\>CACLS D:\PROFILES\testaccount /E /T /C /G "DomainAdmins":F
    No mapping between account names and security IDs was done.
    
    C:\>
    I chanaged the bat file between the 2 runs from Domain admins to DomainAdmins

  5. #20

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    2,086
    Thank Post
    123
    Thanked 533 Times in 357 Posts
    Blog Entries
    2
    Rep Power
    336
    Pants indeed.

    Just run it on D:\PROFILES. It will percolate through the subfolders. Don't use "DomainAdmins" (with no space) it must be "Domain Admins".

  6. #21
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,365
    Thank Post
    66
    Thanked 178 Times in 150 Posts
    Rep Power
    62
    Quote Originally Posted by Pyroman View Post
    Pants! It's stopped working, tested it on 1 profile, then all i did was change the profile from d:\profiles\testprofile to d:\profiles\anothertestprofile and it's coming up with

    Code:
    C:\>permissions.bat
    
    C:\>CACLS D:\PROFILES\testaccount /E /T /C /G "Domain Admins":F
     ACCESS_DENIED: D:\PROFILES\testaccount
    The filename, directory name, or volume label syntax is incorrect.
    
    C:\>permissions.bat
    
    C:\>CACLS D:\PROFILES\testaccount /E /T /C /G "DomainAdmins":F
    No mapping between account names and security IDs was done.
    
    C:\>
    I chanaged the bat file between the 2 runs from Domain admins to DomainAdmins
    Yeah as Jinnanonnixx says it gives you an access denied message because you are running it too far up the folder tree if you see what I mean. Basically you are adding yourself to the permissions on that folder as it runs, so you have to start from a folder which you ALREADY have full control over otherwise you will be epic denied.

  7. #22
    Pyroman's Avatar
    Join Date
    Sep 2007
    Posts
    1,287
    Thank Post
    465
    Thanked 156 Times in 115 Posts
    Rep Power
    75
    Ah okay, i'm just being a big girl trying to test it on unused profiles, need to bite the bullet and run it on the main profiles folder then, eek!

  8. #23
    Pyroman's Avatar
    Join Date
    Sep 2007
    Posts
    1,287
    Thank Post
    465
    Thanked 156 Times in 115 Posts
    Rep Power
    75
    Update on this, i've tried running it straight on the profiles folder and it's giving me access denied still :-S confused



SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 19
    Last Post: 22nd March 2012, 12:45 PM
  2. Replies: 8
    Last Post: 25th May 2011, 10:44 AM
  3. Replies: 2
    Last Post: 6th May 2011, 06:23 PM
  4. Staff taking ownership of laptops
    By sonofsanta in forum Licensing Questions
    Replies: 17
    Last Post: 15th February 2011, 09:47 AM
  5. [SIMS] Taking ownership of reports [Solved]
    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
  •