Hey,
I am trying to use DSADD to create a whole load of users froma text file and create their home directories and things. I do Not know a lot about this stuff so please keep your answers simple.
My script is below:
@Echo off
echo Creating Accounts
echo -----------------
for /f "tokens=1-2" %%A in (People.txt) do (dsadd user "CN=%%A %%B, OU=Customer Service, OU=Departments, DC=Neil, dc=Domain" -fn %%A -ln %%B -display "%%A %%B" -samid %%A.%%B -pwd P@ssw0rd -mustchpwd no -disabled no -hmdrv Z: -hmdir "\\neilserver\users\$username$")
echo -----------------
echo Setting Permissions
echo -----------------
net share Chris.Moyles=C:\users\Chris.Moyles
cacls C:\users\Chris.Moyles /E /G Chris.Moyles:F
echo -----------------
pause
it creates the users fine and when I log onto a client as Chris.Moyles the shared folder is there. I open that drive and inside is the users folder and inside that is the Chris.Moyles folder.
If i try to place anything in either the users or the Chris.Moyles folder I egt an Access Denied Message.
I just need to know how to allow the user to put stuff into the Chris.Moyles folder.
How to make the Chris.Moyles folder appear when I open the drive on the client and not the users folder then the Chris.Moyles folder.
and also on the server if I go to the Chris.Moyles folder and check the sharing permissions it does not have Chris.Moyles listed with full control. It just shows "Everyone" and even if I add Chris.Moyles and give him full contro, there then it still fails to work
Any help guys?
Thanks
Regards,
Neil
I am trying to use DSADD to create a whole load of users froma text file and create their home directories and things. I do Not know a lot about this stuff so please keep your answers simple.
My script is below:
@Echo off
echo Creating Accounts
echo -----------------
for /f "tokens=1-2" %%A in (People.txt) do (dsadd user "CN=%%A %%B, OU=Customer Service, OU=Departments, DC=Neil, dc=Domain" -fn %%A -ln %%B -display "%%A %%B" -samid %%A.%%B -pwd P@ssw0rd -mustchpwd no -disabled no -hmdrv Z: -hmdir "\\neilserver\users\$username$")
echo -----------------
echo Setting Permissions
echo -----------------
net share Chris.Moyles=C:\users\Chris.Moyles
cacls C:\users\Chris.Moyles /E /G Chris.Moyles:F
echo -----------------
pause
it creates the users fine and when I log onto a client as Chris.Moyles the shared folder is there. I open that drive and inside is the users folder and inside that is the Chris.Moyles folder.
If i try to place anything in either the users or the Chris.Moyles folder I egt an Access Denied Message.
I just need to know how to allow the user to put stuff into the Chris.Moyles folder.
How to make the Chris.Moyles folder appear when I open the drive on the client and not the users folder then the Chris.Moyles folder.
and also on the server if I go to the Chris.Moyles folder and check the sharing permissions it does not have Chris.Moyles listed with full control. It just shows "Everyone" and even if I add Chris.Moyles and give him full contro, there then it still fails to work
Any help guys?
Thanks
Regards,
Neil