Create user with Powershell

Welcome to my User creation video using Windows Powershell.

In this short video I will demonstrate how to create a script based user, without as well as with settings applied. I have added the code that I used in the video.

As the bottom of the scree was cut off, I have pasted the code that I typed

If you wish to view in YouTube click here

“dsadd user “cn=LHaynes, ou=Users,ou=Nottingham,dc=carlee,dc=local” -fn Lee -ln Haynes -pwd  P@ssw0rd -mustchpwd yes

dsadd user (define object type)
cn=First Initial and Full Last Name
ou=Users (This is the childOU)
ou=Nottingham (This is the parent OU)
dc=carlee (Domain Name)
dc=local Domain Prefix(com, co.uk, me.uk, etc)
- fn Type First Name Here
-ln Type Last Name Here
-pwd The password typed here will apply to that user  P@ssw0rd
-mustchpwd yes *This forces the user to change their password an first log in to their account

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>