Tuesday, March 24, 2015

Create a User Account using PowerShell in Server 2012

1 – Open your Windows Powershell which located in your taskbar.

1
2 – Next, in your Powershell, type New-ADOrganizationalUnit MelakaBranchto create 1 new Organizational unit (for this demo, I create 1 new OU nameMelakaBranch)
2
3 – Open Active Directory User & Computer to confirm the new OU succesfully created.
3
4 – After your new OU successfully created, now you can create your new user (for this demo I’m using a new user call Maler Selvarajah). In Powershell, type New-ADUser -Name Maler -DisplayName “Maler Selvarajah” -GivenName Maler -Surname Selvarajah -Path “ou=MelakaBranch,dc=cpx,dc=local” and press Enter. ** Refresh Active Directory User and Computer to confirm your new user is created successfully.
4
5 – Next, you must create password for your new user by typing Set-ADAccountPassword Maler
5
6 – Once your User password successfully created, you need to enable the account so that your new user can log in to their Windows 8 machine. Type Enable-ADAccount Maler and press Enter.
6
7 – Next, go to Windows 8 machine and try log in using Maler account.
7
8
My new user now successfully log in to her Windows 8 machine..

No comments:

Post a Comment