IT Questions and Answers :)

animated-update-image-0026

COVID-19 India HEAT MAP

A message to our readers about COVID-19

With the uncertainty surrounding the outbreak of the corona virus. We want to reassure our reader stay safe and Healthy.Be aware and alert. Work as one nation. Sanitize and disinfect all equipment before entering your home, work and anywhere.

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