Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How to add AD-user via command-line ?

user-image
Question ajoutée par Muhammad Irfan , Level II Enterprise Services Engineer , Machsol,Inc
Date de publication: 2014/04/23
Zia Meer
par 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
par 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
par Syed Iqbal Haider , windows System Engineer , Kronos Solutions

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
par 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
par 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.
par Arfath Mohammed. , IT Manager , Hyundai Arabia Company Ltd

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

Ahmed kamal
par Ahmed kamal , Senior Systems Administrator , SBTMC

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

 

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?