Register now or log in to join your professional community.
C:> dsadd user UserDN [-samid SAMName] [-upn UPN] [-fn FirstName] [-mi Initial] [-ln LastName] [-display DisplayName] [-empid EmployeeID] [-pwd {Password | *}] [-desc Description] [-memberof Group ...] [-office Office] [-tel PhoneNumber] [-email Email] [-hometel HomePhoneNumber] [-pager PagerNumber] [-mobile CellPhoneNumber] [-fax FaxNumber] [-iptel IPPhoneNumber] [-webpg WebPage] [-title Title] [-dept Department] [-company Company] [-mgr Manager] [-hmdir HomeDirectory] [-hmdrv DriveLetter:][-profile ProfilePath] [-loscr ScriptPath] [-mustchpwd {yes | no}] [-canchpwd {yes | no}] [-reversiblepwd {yes | no}] [-pwdneverexpires {yes | no}] [-acctexpires NumberOfDays] [-disabled {yes | no}] [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}] [-q] [{-uc | -uco | -uci}]
We can add a user through graphically in Active directory users and computers.
From Command line:
dsadd user cn="username",ou="ouname",dc="domain name" -pwd=<new password you want to given> -display "give the display name you want"
4893
You can add a user through graphically in Active directory users and computers.
From CLI :
dsadd user cn="username",ou="ouname",dc="domain name" -pwd=<new password you want to given> -display "give the display name you want
using CMD : DSADD .exe
Powershell : new-aduser cmdlet provide capability to add user using command prompt
dsadd user cn="username",ou="ouname",dc="domain name" -pwd=<new password you want to given> -display "give the display name you want"
Windows +r
cmd
and enter DSADD
this command helps to add the user in ad
For example, to add user John to AD, I typed
C:\\> dsadd user CN=John,CN=Users,DC=it,DC=uk,DC=savilltech,DC=com -samid John -pwd Pa55word