+ Post New Thread
Results 1 to 7 of 7
Windows Server 2008 Thread, adding %username% to user's documents folder in Technical; Hi all, I've just made a transition in how our user accounts are being created at school. (previously it was ...
  1. #1
    atamakosi's Avatar
    Join Date
    Jun 2011
    Posts
    107
    Thank Post
    7
    Thanked 11 Times in 9 Posts
    Rep Power
    14

    adding %username% to user's documents folder

    Hi all,
    I've just made a transition in how our user accounts are being created at school. (previously it was all done manually and could be time consuming for myself and inefficient for any students enrolling, etc etc) Anyhow, I've implemented a handy little SMS script and service on our AD service that allows the SMS to create user accounts as soon as the student is enrolled. Now, I've just done a simple data transfer from the old Students$ folder to a new one (after recreating the permissions). I was hoping that AD would pick up all the users and re-add them to be owners of their folders. Unfortunately this hasn't happened. Rather than manually going through each, is there a way to force AD to match a profile with username 'smithj' in year 7 to the folder in Students$/Year7/smithj? This seems to be the only downside to this conversion and is just a one off really.

    cheers for any help!

  2. #2

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,063
    Thank Post
    160
    Thanked 920 Times in 723 Posts
    Blog Entries
    3
    Rep Power
    272
    Hello @atamaskosi,

    I recommend that you download a program called NTFS Fix from Wise Soft. I have used it many times before to replace NTFS Permissions on folders.

    NTFSFix

    It is straightforward to use, but if you have any problems post on here. It is FREE by the way.

    Hope that helps,
    James.

  3. Thanks to EduTech from:

    speckytecky (11th April 2012)

  4. #3
    chazzy2501's Avatar
    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,782
    Thank Post
    213
    Thanked 263 Times in 213 Posts
    Rep Power
    67
    I don't write scripts but I have noticed that if you change the home folder of multiple existing users with AD (server/share%username%) then it won't actually do anything until the student logs in for the first time. This isn't the case on a new user though, where it make the directory straight away.

  5. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,962
    Thank Post
    886
    Thanked 1,710 Times in 1,478 Posts
    Blog Entries
    12
    Rep Power
    449
    It just so happens i did this at weekend

    Run this in a batch file in the root of your home areas. It will add the permissions to the students folder (assuming the folders are named the same as the usernames)

    Code:
    for /D %%i in (*) do (
       cacls %%i /T /E /G DOMAIN-NAME-HERE\%%i:c
    )

  6. Thanks to FN-GM from:

    atamakosi (11th April 2012)

  7. #5
    atamakosi's Avatar
    Join Date
    Jun 2011
    Posts
    107
    Thank Post
    7
    Thanked 11 Times in 9 Posts
    Rep Power
    14
    Checked out NTFSFix, unfortunately on a 2k8 server it wanted to download and install .NET 1.1. I wasn't too keen on this so I tried the batch script and looks like FN-GM's solution worked pretty well. The random folders I checked appear to have now matched with the corresponding usernames. Thanks a lot guys for responding and saving me hours of changing permissions!

  8. #6
    atamakosi's Avatar
    Join Date
    Jun 2011
    Posts
    107
    Thank Post
    7
    Thanked 11 Times in 9 Posts
    Rep Power
    14
    Quote Originally Posted by FN-GM View Post
    It just so happens i did this at weekend

    Run this in a batch file in the root of your home areas. It will add the permissions to the students folder (assuming the folders are named the same as the usernames)

    Code:
    for /D %%i in (*) do (
       cacls %%i /T /E /G DOMAIN-NAME-HERE\%%i:c
    )
    I don't suppose you've experieince problems with students being unable to save? I'm getting a few teachers telling me that students can't save their work. (permissions denied issue) I've checked the user folder and the username has the correct permissions. (!?!)

  9. #7
    Hedghog's Avatar
    Join Date
    Jul 2006
    Location
    North Wales
    Posts
    194
    Thank Post
    35
    Thanked 17 Times in 16 Posts
    Rep Power
    37
    Hi
    Do you use folder redirection? I have found that if "my documents" is redirected to the wrong place any student who saves via my documents instead of the mapped drive will fail to save.

SHARE:
+ Post New Thread

Similar Threads

  1. Users My Documents folder
    By Kineas in forum Windows Server 2008
    Replies: 9
    Last Post: 8th February 2012, 11:26 AM
  2. Adding username to printout
    By Little-Miss in forum How do you do....it?
    Replies: 29
    Last Post: 25th November 2010, 11:54 AM
  3. Need To Move The Network Documents Folder (Every User Account)
    By pritchardavid in forum Windows Server 2000/2003
    Replies: 10
    Last Post: 11th May 2010, 06:33 PM
  4. Problem with user My Documents folders
    By misterchris in forum Windows
    Replies: 2
    Last Post: 24th May 2009, 02:53 PM
  5. Script to Create My Documents Subject Folders
    By SwedishChef in forum Scripts
    Replies: 15
    Last Post: 5th July 2006, 08:14 AM

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
  •