Ok so im studying my ms server exams and have hit a brick wall. I have the ms box set for server 2008 70-640. I have created myself a domain admin account which i am logged on with. I can create a new user the long tedious way from the AD DS snapin but cant from command line i receive access denied.
the code im using is as follows
C:\Users\jl_admin>dsadd user "cn=mike smith,ou=people,dc=contoso,dc=com" -samid mike.smith -pwd * -mustchpwd yes -hmdir \\server01\users\%username%\documents -hmdrv u:
Enter User Password:
Confirm user password:
dsadd failed:cn=mike smith,ou=people,dc=contoso,dc=com:Access is denied.
type dsadd /? for help.
C:\Users\jl_admin>
Can anyone see where im going wrong. I have checked the permissions on the people ou and domain admins have full access (as expected)
the code im using is as follows
C:\Users\jl_admin>dsadd user "cn=mike smith,ou=people,dc=contoso,dc=com" -samid mike.smith -pwd * -mustchpwd yes -hmdir \\server01\users\%username%\documents -hmdrv u:
Enter User Password:
Confirm user password:
dsadd failed:cn=mike smith,ou=people,dc=contoso,dc=com:Access is denied.
type dsadd /? for help.
C:\Users\jl_admin>
Can anyone see where im going wrong. I have checked the permissions on the people ou and domain admins have full access (as expected)