Article ID: 130017
Article Last Modified on 11/1/2006
ADDUSERS \\<ServerName> /D USERS.CSV
FOR %%X IN (<Username>)
FOR %%X IN (JOHN MARY GEORGE ALICE...) DO MKDIR C:\USERS\%%X
FOR %%X IN (PAM JIM LAUREN MICHAL...) DO MKDIR C:\USERS\%%X
:
:
NOTE: You can create as many lines as you need until each user is
part of a FOR statement.
FOR %%X IN (<Name1> <Name2>... ) DO CACLS C:\USERS\%%X /G %%X:F
NET SHARE USERS=C:\USERS
DO NET USERS %%X /HOMEDIR:\\<ServerName>\USERS\%%X
NOTE: This command adds a shared directory path to the user account
in the Home Directory field of the user's profile in User Manager.
You can make adjustments to accommodate more commands as required or
repeat the process for each NET USERS command you would like to apply
to the user's account.
NET USE H: /HOME
NOTE: The /HOME option works for both Windows NT and Windows for
Workgroups systems.
FOR %%X IN (JOHN MARY) DO NET USERS %%X /ACTIVE:YES /EXPIRES:06/22/95
FOR %%X IN (JOHN MARY) DO MKDIR C:\USERS\%%X
FOR %%X IN (JOHN MARY) DO NET USERS %%X /SCRIPTPATH:LOGIN.BAT
NET GROUP ENGINEERING /ADD /COMMENT:"ENGINEERS"
FOR %%X IN (JOHN MARY) DO NET GROUP ENGINEERING %%X /ADD
NET SHARE USERS=C:\USERS
FOR %%X IN (JOHN MARY) DO NET USERS %%X /HOMEDIR:\\<ServerName>\USERS\%%X
FOR %%X IN (JOHN MARY) DO CACLS C:\USERS\%%X /G %%X:F
(NTFS Only - Sets the Users Directory permissions to Full Control)
CACLS C:\USERS /G EVERYONE:R
(NTFS Only - Sets the USERS directory to READONLY)
Additional query words: prodnt nwconv tool migration nwconvert
Keywords: kbnetwork KB130017