Lab 4
Lab 4
2.
At the Windows PowerShell prompt, type the following command, and then press Enter:
New-ADOrganizationalUnit LondonBranch
3.
4.
5.
6.
When prompted for the desired password, type Pa$$w0rd, and then press Enter.
7.
When prompted to repeat the password, type Pa$$w0rd, and then press Enter.
8.
At the Windows PowerShell prompt, type Enable-ADAccount Ty, and then press Enter.
9.
10.
On LON-DC1, at the Windows PowerShell prompt, type the following command, and then press Enter:
New-ADGroup LondonBranchUsers -Path "ou=LondonBranch,dc=adatum,dc=com" -GroupScope
Global -GroupCategory Security
2.
3.
Get-ADGroupMember LondonBranchUsers
Results: After completing this exercise, you will have created user accounts and groups by
using Windows PowerShell.
2.
In the Windows Explorer window, expand E:, expand Labfiles, and then click Mod04.
3.
4.
In Windows PowerShell Integrated Scripting Environment (ISE), read the comments at the top of the sc
.csv file.
5.
6.
7.
In the How do you want to open this type of file (.csv) window, click Notepad.
8.
In Notepad, type the following line at the top of the file: FirstName,LastName,Department,Default
9.
10.
Close Notepad.
2.
3.
4.
5.
6.
2.
At the Windows PowerShell prompt, type cd E:\Labfiles\Mod04, and then press Enter.
3.
4.
5.
6.
Results: After completing this exercise, you will have used Windows PowerShell to create us
er accounts in bulk.
2.
At the Windows PowerShell Prompt, type the following command, and then press Enter:
Get-ADUser -Filter * -SearchBase "ou=LondonBranch,dc=adatum,dc=com" | Format-Wide
DistinguishedName
3.
Verify that only users from the LondonBranch organizational unit (OU) are listed.
4.
At the Windows PowerShell prompt, type the following command, and then press Enter:
Get-ADUser -Filter * -SearchBase "ou=LondonBranch,dc=adatum,dc=com" |
Set-ADUser -ChangePasswordAtLogon $true
5.
On LON-DC1, in Server Manager, click Tools, and then click Active Directory Administrative Cente
2.
In Active Directory Administrative Center, in the Navigation pane, expand Adatum (local) and double
3.
Click the Type column header to sort based on the object type.
4.
Select all user accounts, right-click the user accounts, and then click Properties.
5.
In the Multiple Users window, under Organization, select the Address check box.
6.
7.
8.
In the Country/Region box, click United Kingdom, and then click OK.
9.
Results: After completing this exercise, you will have modified user accounts in bulk.
To prepare for the next module
When you finish the lab, revert all virtual machines back to their initial state by performing t
he following steps:
1.
2.
In the Virtual Machines list, right-click 20410B-LON-CL1, and then click Revert.
3.
4.