+ Post New Thread
Results 1 to 12 of 12
Windows Server 2008 R2 Thread, Home Folder Attrib is there but folder not created in Technical; Hi all, That time of year again, we are creating new users. Last year we used some software call BAC ...
  1. #1

    Join Date
    Mar 2011
    Location
    Waterford
    Posts
    32
    Thank Post
    14
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Home Folder Attrib is there but folder not created

    Hi all,

    That time of year again, we are creating new users. Last year we used some software call BAC (Bulk Active Directory) which was able to take in an Excel file which was a modified version of what the main office uses. This created all the users but didn't create the home folder. I was able to highlight all the new users and add \\server01\studenthome\%username% and that created the folder once I click ok. The home folder was firstname.surname.

    This year the principal wants the logon name to be the student ID but teachers won't be able to easily find their students' work when looking up the folders in the student home directory as they would all be numbers. I know, I know, if you have at most 30 in the class then it can't be that hard to have the names and numbers on a sheet of paper and find them that way but ye all know that teachers won't be happy with that.

    After looking through the forum here I found a few people recommending WiseSoft Bulk AD. I downloaded this and discovered it only edits the details of existing users. So I used the previous program to create four test users based on details in an excel sheet. Then I ran Bulk AD to edit the information for these four users in excel. I used a CONCATENATE function to create a folder that had description (we put course code in here) then student id and then student name. This created a unique folder that was easily identifiable by teachers. However, it only updated the attribute for home folder. It never actually created the folder.

    Finally, the question...does anyone know of a way to force the creation of the folders based on whats in the home folder field? Or, is there a better program for my needs but it has to be free or very cheap as there is no budget to make my life easier.

    I could go into each user and delete a letter from the home folder entry then put it back in. This activates the apply button which when clicked will create the folder but obviously this defeats the purpose of automation. Also I need to have this done by tomorrow so I'm afraid suggestions of Powershell can't be accepted

    Thanks for any help guys. I'm so close but yet so far.

    K

  2. #2
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    54
    I've used the WiseSoft spreadsheet but since turning to 2008R2 I have not been able to make the program create the folders either. I would guess it has something to do with permissions but as I only use the %username% for the folder name I wasn't too worried.

    Could you exploit the 'Documents' bug by populating the directories with a desktop.ini with the students names on?

  3. #3

    Join Date
    Mar 2011
    Location
    Waterford
    Posts
    32
    Thank Post
    14
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hi matt,

    Thanks for the relpy. Forgive my ignorance but what is the "documents" bug?

    K

  4. #4
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    54
    I'm sure it still applies but have a look at this thread Home folders renames to My Documents

    If you can find a way to create the desktop.ini file with something like this

    Code:
    [.ShellClassInfo]
    LocalizedResourceName={users name}
    IconResource=%SystemRoot%\system32\imageres.dll,-112
    IconFile=%SystemRoot%\system32\shell32.dll
    IconIndex=-235
    I don't know how flexible this is though. You may be able to create one .ini file that will get the users info from active directory but I'm not so sure now I've had a look at it closer.

  5. #5

    Join Date
    Mar 2011
    Location
    Waterford
    Posts
    32
    Thank Post
    14
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hi Matt,

    Thanks again for that. Its a little over my head but from what I understand does the folder not have to exist first to put something into it?

    Most of my server knowledge is dealing with problems as they arrise so I may not as fluent as most of you guys here.

    K

  6. #6
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    54
    I've just gone back to the WiseSoft spreadsheet and mine will now create the directories. I added myself to the root of the home folders with full permissions and the folder created no problem. The only thing that I don't get now are the user being added to the correct groups but that can be done with active directory users and computers.

    You could probably restrict this permission to create folders and change permissions only. Home folder has full control for SYSTEM and CREATOR OWNER only apart from my addition today.

  7. #7

    Join Date
    Mar 2011
    Location
    Waterford
    Posts
    32
    Thank Post
    14
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Cool. How did you get Wisesoft to create the folder. When I was checking the forums on the WiseSoft site David himself said that it doesn't create the folder.

    K

  8. #8
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    54
    Take a look in the options on that spreadsheet on the add users page. One of the options I have is 'create work areas'. It seems that as long as you have enough permissions on the server the folders are created with this option ticked. (you can even specify the ntfs permisions). There is a dll that needs to be registered for this to work I think. It comes with the spreadsheet and needs to be in System32 (or SysWOW64 on a 64 bit)

  9. Thanks to cromertech from:

    KevWCFE (11th October 2011)

  10. #9

    Join Date
    Mar 2011
    Location
    Waterford
    Posts
    32
    Thank Post
    14
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Cheers Matt, I'll give that a try.

  11. #10

    Join Date
    Mar 2011
    Location
    Waterford
    Posts
    32
    Thank Post
    14
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hi Matt,

    I only realised afterwards that you were talking about the excel sheet that comes from WiseSoft to create users. I was using the Bulk Modifier program so that explains my confusion.

    In the end I ended up running the bulk modifier and saving the excel sheet that was created with just the home folder column in it and saved as a CSV. I then ran a batch file to run through the CSV with a for loop and run a MKDIR command on every entry it came across.

    This created the folder based on what was already in the home folder attribute.

    I thought this worked but today I discovered that students don't have access to that folder. As it was me under administrator who ran the batch I am the owner of the folders and the Teachers group also have access which is inherited from the folder above.

    Back to the drawing board I guess. As the students are all using the accounts now (I happily told the vice principal to go ahead) I have to find some way to modify the permissions in the folders or delete them and create them again another way with the correct permissions....or manually change the permissions on 1015 folders! I'm hoping for an automated way.

    Thanks for your help to date.

    K

  12. #11
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    54
    You can probably modify your batch to include a icacls entry to add the user with full permissions to the relevant folder. Will be something like the following (but this is off the top of my head so probably wrong)

    Code:
    icacls {folder} /grant {username}:F
    so in your csv you can export the users name as well as the folder and target your for loop to to create the directory and then use a second command to collect the username variable for granting the permissions

  13. Thanks to cromertech from:

    KevWCFE (24th October 2011)

  14. #12

    Join Date
    Mar 2011
    Location
    Waterford
    Posts
    32
    Thank Post
    14
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hi Matt,

    Thanks again for getting back to me. Wasn't expecting a reply so wasn't checking. Would you believe I did pretty much what you were suggesting. I used cacls not icacls though. It worked anyway so all sorted.

    Thanks again for your help throughout the issue. Once again the edugeek site has saved me a lot of reading and hair loss

    K

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 5
    Last Post: 2nd September 2011, 12:21 PM
  2. Home Folder AD Redirection not working
    By jamiesev in forum Windows
    Replies: 0
    Last Post: 16th August 2011, 01:58 PM
  3. Home folder not mapping with first login
    By detjo in forum Windows
    Replies: 12
    Last Post: 11th February 2011, 07:47 PM
  4. Students are installing IM apps to their home folder
    By bwallman in forum How do you do....it?
    Replies: 30
    Last Post: 20th December 2007, 05:31 PM
  5. Home Folder Shares
    By Gatt in forum Windows
    Replies: 19
    Last Post: 30th May 2006, 04:37 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
  •