1. Ensure that the Server manager window is open and active.
2. select AD DS in the left pane.
3. Right-click the EBDD_DC1 server under the server name column of the SERVER pane.
4. select the Active Directory Module for windows Power Shell option. the Administrator: Windows Power Shell
window is displayed.
5. open a new notepad file.
6. type the following code:
New-ADOrganizationalUnit -Name "IT"
New-ADOrganizationalUnit -Name "Research"
7. save the file as the OUs.PSI name in the C: drive. Ensure that you select the all files option from the
save as type drop-down list box.
8. Open a new notepad file.
9. Type the following code:
New-ADuser -name "April Regan" -SamAccountName "April" -AccountPassword
(ConvertTo-SecureString "Pa$$w0rd -ASPlainText -Force") Enabled $True -
PasswordNeverExpires $True -ChangePasswordAtLogon $false new-ADuser -Name "Allie Bellew" -
SamAccountName "ALLie" -DisplayName "Allie Bellew" -Path "OU=Research, DC=adaatum, DC=com" -
AccountPassword (ConvertTo-SecureString "Pa$$w0rd" -AsPainText -force) -Enabled $True -
PasswordNeverExpires $true -ChangePasswordAtLogon $false
10. save the file as the Users.PSL name in the C: drive. Ensure that you select the All files option from the
save as type drop-down list box.
11. open a new notepad file.
12. save the file as the add_Users_to_Group.PSI name in the C:drive. Ensure that you select the All files option
from the sale as type drop-down list box.
13. Switch to the Administrator: Windows powerShell window.
14. type set-ExecutionPolicyRemoteSigned, and then press the Enter key.
15. type y, and then press the enter key.
16. type &'C:\ous.PSI', and then press the enter key.
No comments:
Post a Comment