Showing posts with label Powershell. Show all posts
Showing posts with label Powershell. Show all posts

Sunday, January 26, 2020

Powershell - RODC Installation and Password Caching

Try It: RODC Installation and Password Caching

A. Datum is adding a new branch office. You have been asked to configure an RODC to service logon requests at the branch office. You also need to configure password policies that ensure caching only of passwords for local users in the branch office.
In this Try It you will verify requirements for installing a RODC, install the RODC, and configure password replication policies.
Note:  In this lab you will pre-create the RODC computer account. By pre-creating this account, you can delegate the second part of the RODC deployment to a non-administrative user. For example, if the remote site (branch office) doesn't have any IT administrators,  a non-IT user at the site can complete the installation. If your intention is to deploy an RODC yourself and you are a domain administrator, you will often bypass the pre-creation and just go straight to the deployment.
Create the RODC account on LON-DC1
  1. LON-SVR1 should not be on the domain when the RODC account is created on LON-DC1. So, follow these steps to move it temporarily to a Workgroup.
  2. Login to LON-SVR1 as Adatum\Administrator with the password Pa$$w0rd.
  3. In Server Manager, select Local Server, and then next to Domain click Adatum.com
  4. Click Change and put LON-SVR1 in a workgroup named TEMPORARY.
  5. Acknowledge the message that you will need the Administrator’s password to rejoin the domain.
  6. As prompted, restart LON-SVR1.
  7. Log on to LON-DC1 as Adatum\Administrator with password Pa$$w0rd.
  8. In Server Manager, click Tools, and then select Active Directory Users and Computers.
  9. Delete the LON-SVR1 computer account from the Computers container.
  10. Read and acknowledge the subtree deletion information.
  11. Right-click the Domain Controllers OU, and select Pre-create Read-only Domain Controller account.
    • Network credentials: My current logged on credentials
    • Computer name: LON-SVR1
    • Site: Default-first-site-name
    • Leave selected DNS server and Global catalog
    • Delegate to: ADATUM\IT
  1. Finish the Wizard and verify LON-SVR1 has been added to the Domain Controllers OU.
Add the AD DS role to LON-SVR1
  1. Login to LON-SVR1 as Adatum\Administrator with the password Pa$$w0rd.
  2. In the Server Manager Dashboard, click Add roles and features, and then on the Server Roles page, select the Active Directory Domain Services role.
  3. Take all of the default values, and wait for the installation to complete.
  4. In Server Manager, click the Notification flag, and select Promote this server to a domain controller.
  5. Complete the post deployment steps using the default options except those listed below. Notice you are adding a domain controller to an existing domain. Also, you will use the pre-created RODC account.
    • Domain: Adatum.com
    • Network credentials: Adatum.com\Administrator
    • Password: Pa$$w0rd
    • Directory Services restore mode password: Pa$$w0rd
    • Read the Warning message: Use existing RODC account
    • Replicate from: LON-DC1.Adatum.com
    • Take the defaults for the location of the AD DS database.
    • Review your selections and click View Script. Notice the PowerShell commands that are being used.
  1. When the installation is complete, LON-SVR1 will automatically restart.
Configure password replication
  1. On LON-DC1, from Server Manager, open Active Directory Users and Computers.
  2. In the Users container, view the membership of the Allowed RODC Password Replication Group, and verify that there are no current members.
  3. In the Research OU, create a new global security group name Remote Office Users.
  4. On the Members tab, add Aziz, Colin and LON-CL1 to the membership of Remote Office Users.
  5. In the Domain Controllers OU, open the properties of LON-SVR1.
  6. On the Password Replication Policy tab, allow the Remote Office Users group to replicate passwords to LON-SVR1.
  7. Apply your changes.
  8. Click Advanced. On the Resultant Policy tab, add Aziz, and then confirm that Aziz’s password can be cached.
Monitor credential caching
  1. Attempt to sign in to LON-SVR1 as Aziz. This sign-in will fail because Aziz does not have permission to sign in to the RODC, but authentication is performed and the credentials are now cached.
  2. On LON-DC1, in Active Directory Users and Computers, in the Domain Controllers OU, open the properties of LON-SVR1.
  3. On the Password Replication Policy tab, open the Advanced configuration.
  4. On the Policy Usage tab, select the Accounts that have been authenticated to this Read-only Domain Controller option. Notice that Aziz’s password has been cached.
Populate credential caching

  1. On LON-DC1, in Active Directory Users and Computers, in the Domain Controllers OU, right-click LON-SVR1, and then click Properties.
  2. On the Password Replication Policy tab, click Advanced.
  3. On the Policy Usage tab, prepopulate the password for Colin and LON-CL1.
  4. Read the list of cached passwords, and then confirm that Colin and LON-CL1 have been added.
  5. Close all open windows on LON-DC1.

Powershell - Create an organizational unit and delegate control

Create an organizational unit and delegate control

  1. Sign in to LON‑DC1 as Adatum\Administrator with the password Pa$$w0rd.
  2. In Server Manager, click Tools, and then click Active Directory Users and Computers.
  3. Right-click Adatum.com, click New, and then click Organizational Unit.
  4. Name the new OU A Datum Merger Team.
  5. Verify that you have a new OU named A Datum Merger Team.
  6. Right-click the A Datum Merger Team OU, and then Delegate Control…
  7. On the Users or Groups page, click Add, and add the Managers group.
  8. On the Tasks to Delegate page, read through the different common tasks that can be delegated.
  9. Take a moment to select Create a custom task to delegate, click Next, and review the many objects and permissions settings that can be used to customize a task.
  10. Return to the common tasks, click the Delegate the following common tasks radio button, and then select the Reset user passwords and force password change at next logon checkbox.
  11. Complete the delegation of control wizard.
The launchpad to a career in IT. This program is designed to take beginner learners to job readiness in about eight months.

Saturday, January 25, 2020

Powershell - Sites and Subnets

Sites and Subnets (GUI)

In this Try It you will create an additional site for the Toronto office and assign a subnet to that site.
Create a Site for Toronto
  1. Sign in to LON‑DC1 as Adatum\Administrator with the password Pa$$w0rd.
  2. In Server Manager, click Tools, and then click Active Directory Sites and Services.
  3. Expand Sites and notice there is only one site called Default-First-Site-Name. This site was created when the domain controller was installed.
  4. Right-click the Default-First-Site-Name and Rename the site to London.
  5. Right-click Sites, and then click New Site.
    • Name: Toronto
    • Select a site-link object for this site: DEFAULTIPSITELINK
  1. Read the messages about additional configuration tasks for the Toronto site such as: linking to other sites, adding subnets to the site, installing domain controllers in the site, or moving existing domain controllers into the site.
  2. Verify that the Toronto site now displays in the Sites list.
Create IP subnets associated with the Toronto and London sites
  1. Right-click Subnets, and then click New Subnet.
    • Prefix: 172.16.1.0/24.
    • Select a site object for this prefix: Toronto
  1. Right-click Subnets, and then click New Subnet.
    • Prefix: 172.16.100.0/24.
    • Select a site object for this prefix: London
  1. In the navigation pane, click the Subnets folder. Verify in the right pane that the two subnets are created and associated with their appropriate site.
Move a domain controller to the Toronto site
  1. Expand the Toronto site and the Servers folder.
  2. Notice there are no domain controllers for this site.
  3. Expand the London site and the Servers folder.
  4. Notice there are two domain controllers for this site: LON-DC1 and LON-DC2.
  5. Right-click LON-DC2 and Move the domain controller to the Toronto site.
  6. Verify the Toronto site now has a domain controller.
Configure site-links between the sites
  1. Expand Sites, expand Inter-Site Transports, and then click the IP folder.
  2. Notice there is only one site link that replicates every 180 minutes.
  3. Right-click IP, and then click New Site Link.
  4. Name the link LON-TOR. This link will configure the replication between London and Toronto.
  5. Right-click the completed LON-TOR site link, and click Properties.
  6. Notice you can change the Cost and Replicate every values.
  7. Click Change Schedule.

    • Using the mouse, click at the Monday at 9:00 AM tile and drag the cursor to the Friday at 3:00 PM tile.
    • Click Replication Not Available.
    • Notice the white area where during high traffic times replication to the Toronto site will not occur.
The launchpad to a career in IT. This program is designed to take beginner learners to job readiness in about eight months.