Page 1 of 1 1
Topic Options
#198604 - 10/05/13 06:38 PM creating home drives
baggies1 Offline
Fresh Scripter

Registered: 10/05/13
Posts: 9
Loc: suffolk, england
hi folks,

i have sucessfully used kixstart to map my network drives and appears to work well.

i have a selection of users who have home drive and some that dont.

I want to apply a group policy accross the board to give everyone a home drive.

What i would like my group policy login script to be able to do is

1. create the folder in the home drive area if one doesnt already exist
2. give share and secuirty permissions

on part two i may be asking too much but there you go.

any help guidance always appreciated. \:D

#198607 - 10/05/13 10:51 PM Re: creating home drives [Re: baggies1]
Björn Offline
Korg Regular

Registered: 05/12/07
Posts: 950
Loc: Stockholm, Sweden.

The way I see it - there's a 'better' way to do the creation: admin-wise.
create a script that polls the AD for homedrive-settings (to reveal the ones that's missing it, and then create the folders in question that's missing - and last applying/setting the appropriate attribute to the object/user.

Surely you could do this under the computer-account (logon-script), but doing it during user-context (login) seems like a bad idea, since the user then needs the rights to create, making it possible for users to later create and hold other content on the resource planned to only hold homedrives...
as long as it works - why fix it?
If it doesn't work - kix-it!

#198631 - 10/05/16 06:18 PM Re: creating home drives [Re: Björn]
cjutting Offline
Fresh Scripter

Registered: 10/02/05
Posts: 40
Loc: IA
I agree as well. This would be better served with a couple of scripts.

We are going through this right now to give everyone a home directory, but we are using VB to do all of the steps.

#198632 - 10/05/16 07:22 PM Re: creating home drives [Re: cjutting]
Allen Moderator Offline
KiX Supporter

Registered: 03/04/19
Posts: 4223
Loc: USA
I've never tried this but Glenn says in a past post...


If you create a share - \\server\users - for example, you grant that folder "Admins - Full Control", nothing else.

When you create users in ADU&C, you specify "\\server\users\%USERNAME%" as their home directory. The AD tool will create the folder and assign the user full-control rights on the folder that is created.

There's no need to script any of this..


#198633 - 10/05/17 11:50 AM Re: creating home drives [Re: Allen]
Glenn Barnas Moderator Offline
KiX Supporter

Registered: 03/01/28
Posts: 4191
Loc: New Jersey
Just did this last week for a client during an AD Remediation project..

Created the home share, opened the AD Users & Computers app, then selected all of the users in a given OU. Right-click one of the selected users and choose "Properties". Went to the Profile tab, enabled the Login Script and Home Path checkboxes and entered the appropriate data. Total time to define/create the home folders with proper security for 45 users was, well, so fast it was unmeasurable. Certainly less than two minutes to create the share, launch the tool, and perform the steps.

Did the same thing to update the user's address and contact data in a later step.

Visit the Inno-Tech web site for Kix tools/UDFs
Actually I am a Rocket Scientist! \:D

Page 1 of 1 1

Moderator:  Jochen, Allen, Radimus, Chris S., Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 98 anonymous users online.
Newest Members
ForeverRED66, Bertrand59, MeBull, joma256, sanjay
17387 Registered Users

Generated in 0.11 seconds in which 0.09 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google: