chiefbootkncoker
IS-IT--Management
Hello,
I have created a BAT to add a new user to AD, and it works (somewhat) below is the contents of that BAT.
dsadd user cn=AidenWilson,ou=DomainUsers,dc=domain01,dc=ADC01 -upn awilson@domain01.ADC01 -display Aiden -fn Aiden -ln Wilson -pwd Password1 -mustchpwd yes -memberof cn=DomainUsers,ou=DomainUsers,dc=domain01,dc=ADC01
pause
The result of the BAT gives me the AD user AidenWilson, and I want that, but I want the user logon to be awilson. When I look at the account tab for Aiden's AD account is says awilson, but the Windows logon (pre-Windows 2000) says AidenWilson, and that is the user name that works for logon. I'm kinda pointed to the Windows logon (pre-Windows 2000)as being my problem as logins I have created manually have matching credentials, but I'm not sure what I need to do to fix my BAT....anyone that has ideas I would love to hear them. Thank You.
I have created a BAT to add a new user to AD, and it works (somewhat) below is the contents of that BAT.
dsadd user cn=AidenWilson,ou=DomainUsers,dc=domain01,dc=ADC01 -upn awilson@domain01.ADC01 -display Aiden -fn Aiden -ln Wilson -pwd Password1 -mustchpwd yes -memberof cn=DomainUsers,ou=DomainUsers,dc=domain01,dc=ADC01
pause
The result of the BAT gives me the AD user AidenWilson, and I want that, but I want the user logon to be awilson. When I look at the account tab for Aiden's AD account is says awilson, but the Windows logon (pre-Windows 2000) says AidenWilson, and that is the user name that works for logon. I'm kinda pointed to the Windows logon (pre-Windows 2000)as being my problem as logins I have created manually have matching credentials, but I'm not sure what I need to do to fix my BAT....anyone that has ideas I would love to hear them. Thank You.