IT Questions and Answers :)

Monday, May 27, 2019

Using the command prompt, what Active Directory command adds a user?

Using the command prompt, what Active Directory command adds a user?

  • -ad user
  • dsadd user
  • add-user user
  • AddUser user 


EXPLANATION

Adding a new user with the dsadd command is a little easier than with PowerShell, as we don’t need to convert the password to a secure string. Open a PowerShell prompt or command prompt, type the command below and press ENTER. To open a PowerShell prompt, click the blue PowerShell icon on the desktop taskbar, or click the Windows PowerShell tile on the Start screen. It doesn’t matter that dsadd is not a PowerShell cmdlet, it can still be run from a PowerShell window.

dsadd user cn=Russell Smith,cn=Users,dc=ad,dc=contoso,dc=com -samid russellsmith -upn russellsmith@ad.contoso.com -fn Russell -ln Smith -display Russell Smith -disabled no -pwd PassW0rd! -mustchpwd yes
Share:

0 comments:

Post a Comment

Popular Posts