Home directories and shares for Windows 9x clients - Account.HomeDir to hidden share
Top  Previous  Next


The "Account.HomeDir" setting works the same way as using "Net use" in a logon script. Read more here: About home directories for different Windows clients.

1) Create a directory "users" on your server. The NTFS file system must be installed on the drive you choose.

2) Edit the setting for home directory

Account.HomeDir=%servername%\%username%$

This line makes the client connect to each users hidden share each time the user logs on.

%servername% will be replaced with the name of your server and %username% will be replaced with the name of the account created.

4) Add these lines to your [Batch] section (after the "Account.Create" command)

DOS md c:\users\%username%
DOS echo y| cacls c:\users\%username% /G %username%:F administrators:F System:F
DOS net share %username%$=c:\users\%username%


Example Script:

[Settings_Begin]
BatchSettings.Delimiter=TAB
Account.FullName.Col=1
SET username=%col2%
Account.Password.Col=3
BatchSettings.MarkerCol=4
Account.Description.Col=6
Account.HomeDir=%servername%\%username%$
Account.Expires=2000-01-22
Account.ProfilePath=%servername%\PROFILES\STUD
Account.ScriptName=STUD.BAT
SET HomeRoot=e:\users
SET HomePermissions=%username%:F administrators:F System:F
[Settings_End]

[Machines_Begin]
\\EDU12      NT PDC    
[Machines_End]

[Batch_Begin]
Group.Global.Create Students   
Data.Loop   
Account.Create %username%   
Account.Set.Group.Global %username%,Domain Users,Students   
DOS md %HomeRoot%\%username%   
DOS echo y| cacls %HomeRoot%\%username% /G %HomePermissions%   
DOS net share %username%$=%HomeRoot%\%username%   
Data.Endloop   
[Batch_End]