Creating User accounts and Home directories using commands - TechRepublic
Question
February 5, 2009 at 08:36 AM
tino asprilla

Creating User accounts and Home directories using commands

by tino asprilla . Updated 17 years, 5 months ago

My problem lies with creating users accounts and home directories within a server 2003 domain using command batch scripts that I ve created.The following line is an example of what is used to create a user account named Test User with a password “pa$$w0rd” and a profile path pointing to a member server “Server1” which is used to host the home directory “Testuser$”.

NET USER Testuser Pa$$w0rd /COMMENT:”Manager” /fullname:”Testuser” /PROFILEPATH:\\server1\Testuser$\PROFILE / homedir:\\Server1\Testuser$ / ADD /DOMAIN

At this point Testuser$ is shared out as the users home directory on server1 located on the path H:\Testuser$ on server 1 .

My issue is when I run the command line above as a .bat file, the user account is created within active directory as expected with the password etc, the user profile path is set as expected however the home folder path as viewed in active directory on the Domain Controller has a entry for a local path of Server1\Testuser$ using the above command line I would expect the home folder path to be set to “connect H: to Server1\Testuser$”.

Can anyone shed any light on this, am I completely off mark.should the home folder path not be set to connect to the H:\ drive on the server1 example, have I gone wrong somewhere

Any views appreciated.

This discussion is locked

All Comments