P a g e 1 | 24
Content 1. 2. 3. 4. 5. 6. 7.
Install Active Directory and Name user domain.lan Join domain use (window7) Cleate domain user by command (dsadd and Graphic user interface) Test user logon Create multiple user ( 25) .bat Test user logon (2) Create multiple user (25) .csv(PowerShell)
P a g e 2 | 24
1. Install Active Directory and domain name.lan ďƒ° Click on window => Administrator => server manger
ďƒ° Click on use advance mode and continue => next
Page 1|24
Click on create a new domain in a new forest => next
Active Directory domain name is Vannai.lan => next
P a g e 2 | 24
Name the forest root Domain => next
Click and choose window server 2008 => next
P a g e 3 | 24
Click on DNS to add DNS => next
If we click browse to put source of AD => next
P a g e 4 | 24
Active Directory service Restore mode Admin Password => next
Active Directory has been Install => click reboot on completion to restart=> next
P a g e 5 | 24
After we create a new domain we have one domain name
This active Directory and DNS
P a g e 6 | 24
ďƒ° Use command to see name of server
P a g e 7 | 24
1. Join domain use (window7) ďƒ° Window +R to assign IP on server and DNS server
P a g e 8 | 24
After assign Password admin we change computer name of admin
Window 7 change IP and put DNS the same server DNS
We need to know about computer user (IP DNS and other more)
P a g e 9 | 24
Computer name window 7 and Domain name is “
2.
Vannai.lan”
Create domain user by command “ dsadd + GUI We need to use command line “dsadd” for create user Command is ( dsadd user cn=vanna,ou=SNA_A,dc=Vannai,dc=lan)
P a g e 10 | 24
This result of create by command “dsadd” user SNA_A vanna
If user can’t logon we need to make sure that change password
or no
User Doesn’t logon we need go to add reverse lookup zone
P a g e 11 | 24
Make sure Enable user account “vanna” if we not Enable user can’t
logon user domain
User Logon on Domain server “Vannai.lan” user vanna
P a g e 12 | 24
ďƒ° This name of user success
vanna
has been logon and account of user log
2.1 Create user by GUI( Graphic user interface) name is votha for logon domain
P a g e 13 | 24
This is User name of votha create success to domain
3. Test Logon User Logon user name “ votha” to Vannai.lan
P a g e 14 | 24
ďƒ° This is user logon name is votha to domain Vannai.lan
Account of user has been logon to domain
5 Create multiple user ( 25) .bat ďƒ° Create User on the notpad and save it to ( .bat ) and click run and get all file
P a g e 15 | 24
ďƒ° User name is has been run success create by (.bat)
Create user is success all user name
ďƒ° After create user (.bat) we have result is user name Create by (.bat) and interface of user name
P a g e 16 | 24
After create by (.bat) we need to Enable User can access to server and change password => click on Enable account Is “Marady”can access
We need to Enable User account chanrit if we not Enable can’t logon to domain name
P a g e 17 | 24
6 Test user logon Chanrit that create by (.bat) is User Chanrit is logon to
Vannai.lan
=> Then logon is success is user account name of chanrit
P a g e 18 | 24
=>
Test user logon marady to domain name vanai.lan
ďƒ° After logon user marady is success logon can access to domain server
P a g e 19 | 24
7. Create multiple user (25) .csv(PowerShell) We just create user and as the first syntax on the table below ( GivenName , Surname,sameAccount,DiplayName,Password)
We need to download tool from this websitehttp://www.telnetport25.com/2009/12/quickpost-%E2%80%93-script-to-create-lab-users%E2%80%93-powershell-version%E2%80%A6/
P a g e 20 | 24
We need to change place for put user name (ou=SNA_A )
After we user above command => we need to right click on the tool download => Run with PowerShell
After user download it we need to write this command (set-excutionpolicy remotesigned) and (y)
P a g e 21 | 24
After we right click Run with PowerShell need to browse it from drive C => Open it run
This result after run run it
P a g e 22 | 24
ďƒ° This is result from use Powershell and I’m not Enable to logon to domain name ( all user in the SNA_A ou)
P a g e 23 | 24