Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to add AD-user via command-line ?

user-image
Question added by Muhammad Irfan , Level II Enterprise Services Engineer , Machsol,Inc
Date Posted: 2014/04/23
Zia Meer
by Zia Meer , IT Director , Exceed Solutions

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}]

Swagat kumar Rout
by Swagat kumar Rout , Associate Graduate Engineer Trainee , Slocum Management PVT. LTd.

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"

Syed Iqbal Haider
by Syed Iqbal Haider , Lead -Administrator , Ultimate Kronos Group

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

Ranjeet Tiwari
by Ranjeet Tiwari , Sr. Consultant , Cerner HealthCare Solution Pvt. Ltd.

using CMD :  DSADD .exe  

Powershell  :  new-aduser cmdlet  provide  capability to add user  using  command prompt

Mahmoud Yousry Mahmoud Diab
by Mahmoud Yousry Mahmoud Diab , Technical Support Engineer , Metro Markets for Trading & Distribution

dsadd user cn="username",ou="ouname",dc="domain name" -pwd=<new password you want to given> -display  "give the display name you want"

Arfath Mohammed.
by Arfath Mohammed. , IT Manager , Hyundai Arabia Company Ltd

Windows +r

cmd

and enter DSADD

this command helps to add the user in ad

Deleted user
by Deleted user

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

Ahmed kamal
by Ahmed kamal , senior systems admin , alkholi group

dsadd user <users's distinguished name (DN)> -samid <username> -pwd <new password>

 

More Questions Like This