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 ...
10th April 2012, 05:13 AM #1
adding %username% to user's documents folder
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!
10th April 2012, 05:48 AM #2
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.
It is straightforward to use, but if you have any problems post on here. It is FREE by the way.
Hope that helps,
Thanks to EduTech from:
speckytecky (11th April 2012)
10th April 2012, 09:07 AM #3
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.
10th April 2012, 10:09 AM #4
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)
for /D %%i in (*) do (
cacls %%i /T /E /G DOMAIN-NAME-HERE\%%i:c
Thanks to FN-GM from:
atamakosi (11th April 2012)
11th April 2012, 12:40 AM #5
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!
24th April 2012, 05:08 AM #6
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. (!?!)
Originally Posted by FN-GM
24th April 2012, 10:31 AM #7
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.
By Kineas in forum Windows Server 2008
Last Post: 8th February 2012, 11:26 AM
By Little-Miss in forum How do you do....it?
Last Post: 25th November 2010, 11:54 AM
By pritchardavid in forum Windows Server 2000/2003
Last Post: 11th May 2010, 06:33 PM
By misterchris in forum Windows
Last Post: 24th May 2009, 02:53 PM
By SwedishChef in forum Scripts
Last Post: 5th July 2006, 08:14 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)