0% found this document useful (0 votes)
72 views10 pages

Exercise 3: Using Windows Powershell To Manage Servers: Get-Service - Where-Object ($ - .Status - Eq "Running")

This document provides instructions for installing and configuring domain controllers in Windows Server 2016. It describes adding the Active Directory Domain Services role to a member server, promoting the server to a domain controller, and configuring it as a global catalog server. The tasks covered include adding servers, installing roles, configuring domain controller options, and enabling the global catalog. After completing these steps, the server will be prepared to function as a domain controller within the Active Directory domain.

Uploaded by

Ayoub Akrari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views10 pages

Exercise 3: Using Windows Powershell To Manage Servers: Get-Service - Where-Object ($ - .Status - Eq "Running")

This document provides instructions for installing and configuring domain controllers in Windows Server 2016. It describes adding the Active Directory Domain Services role to a member server, promoting the server to a domain controller, and configuring it as a global catalog server. The tasks covered include adding servers, installing roles, configuring domain controller options, and enabling the global catalog. After completing these steps, the server will be prepared to function as a domain controller within the Active Directory domain.

Uploaded by

Ayoub Akrari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Exercise 3: Using Windows PowerShell to Manage Servers

In this exercise, you will use the Windows PowerShell to manage the Window Server
2016. Windows PowerShell is a command-line interface that is similar to command
prompt. It is designed to execute the scripts similar to UNIX/Linux operating
systems.

Start the DC1 virtual machine to perform this exercise.

Task 1: Using the Windows PowerShell to Connect Remotely


to Servers and View Information
1. Sign in to DC1 with the MCSALAB\Administrator account.
2. On the Server Manager console, select ServerGroup1.
3. Select and right-click CORE1, and then select Windows PowerShell.
4. At the Windows PowerShell prompt, type cd\ and then press Enter.
5. Type Import-Module ServerManager, and then press Enter.
6. Type Get-WindowsFeature and then press Enter to view the installed roles
and features on CORE1, as shown in the following figure.

7. Type the following command to view the running services on CORE1 and
then press Enter, as shown in the following figure.
Get-service | where-object {$_.status -eq “Running”}
8. Type the following command and then press Enter to view a list of processes on
CORE1, as shown in the following figure.
Get-Process

9. Type the following command to view the IP addresses of the CORE1


machine, and then press Enter, as shown in the following figure.
Get-NetIPAddress | Format-table

10. Type the following command to view the most recent 5 security logs, and
then press Enter, as shown in the following figure.
Get-EventLog Security -Newest 5

11. Close Windows PowerShell.


Task 2: Using Windows PowerShell to Manage Roles and
Features Remotely
1. On DC1, on the taskbar, click the Windows PowerShell icon.
2. At the Windows PowerShell prompt, type the following command, and then
press Enter.
3. Import-Module ServerManager
4. To verify that the WINS Server feature is not installed on CORE1, type
the following command, and then press Enter, as shown in the following
figure.
Get-WindowsFeature -ComputerName CORE1

5. To install the WINS Server feature on CORE1, type the following


command, and then press Enter, as shown in the following
figure.
6. Install-WindowsFeature WINS -ComputerName CORE1

7. Verify that the Exit Code status displays as the success text.

Results: After completing this exercise, you have managed the servers using
Windows PowerShell

Shut down and revert the DC1 and CORE1 virtual machines.
Exercise 04: Installing and Configuring Domain Controllers
The system that holds the Active Directory Domain Services role acts as a domain
controller. A domain controller is a server that is used to manage and control the clients
on a network.

In this exercise, you will learn how to configure a domain controller on Windows Serve
2016. In addition, you will also learn how to configure a server as a Global Catalog
server.

Start the DC1 and SERVER1 virtual machines to perform this exercise.

Task 1: Adding the AD DS Role on a Member Server


1. Sign in to DC1 with the MCSA\Administrator account.
2. On the Server Manager console, in the left pane, select and right-click All
Servers, and then select Add Servers.
3. On the Add Servers dialog box, in the Name (CN) text box, type SERVER1,
and then click Find Now.
4. In the name list area, select SERVER1, and then click the arrow to add
the server to the Selected column, as shown in the following figure.

5. Click OK to close the Add Servers dialog box.


6. On the Server Manager console, in the Servers pane, wait until the
Manageability status displays as Online – Performance counters not started,
as shown in the following figure.
7. Select and right-click SERVER1, and then select Add Roles and Features.
8. On the Add Roles and Features Wizard, click Next.
9. On the Select installation type page, click Next.
10. On the Select destination server page, make sure that the Select a server
from the server pool radio button is selected.
11. In the Server Pool area, make sure that SERVER1.mcsalab.local is selected,
as shown in the following figure, and then click Next.

12. On the Select server roles page, select the Active Directory Domain Services
check box.
13. On the Add Roles and Features dialog box, click Add Features, and then click
Next.
14. The Select server roles page is returned, make sure that the Active
Directory Domain Services check box is selected, as shown in the
following figure, and
then click Next.
15. Click Next, until the Confirm installation selections page is displayed.
16. On the Confirm installation selections page, select the Restart the
destination server automatically if required check box, and then click
Install.
17. The installation process will start. Click Close to close the Add Roles
and Features Wizard, once the installation is completed.

Task 2: Configuring SERVER1 Server as a Domain


Controller
1. On DC1, on the Server Manager console, click the Notifications button.
2. On the Post-deployment Configuration box, click the Promote this server to
a domain controller link, as shown in the following figure.

3. On the Deployment Configuration page, of the Active Directory Domain


Services Configuration Wizard, make sure that the Add a domain
controller
to an existing domain radio button is selected.
4. In the Domain text box, make sure that the mcsalab.local text is written, as
shown in the following figure.

5. In the Supply the credentials to perform this operation section, click Change.
6. On the Windows Security dialog box, in the Username text box, type
MCSALAB\Administrator, in the Password box, type Password@123, as
shown in the following figure.

7. Click OK and then click Next.


8. On the Domain Controller Options page, make sure that Domain Name
System (DNS) server check box is selected, and then clear the Global
Catalog
(GC) check box.
9. In the Type the Directory Services Restore Mode (DSRM) password
section, type Password@123, in the Password and Confirm password text
boxes, as
shown in the following figure, and then click Next.
10. Click Next, until the Prerequisites Check page is displayed.
11. On the Prerequisites Check page, review the warnings, and then click Install.
12. The installation process will start, click Close, once the installation is completed.
13. The server will restart. Wait for server to restart.

Task 3: Configuring SERVER1 as a Global Catalog Server


1. Switch and sign in to SERVER1 with the MCSALAB\Administrator account
2. On the Server Manager console, click Tools, and then click Active Directory
Sites and Services.
3. On the Active Directory Sites and Services console, expand Sites\Default-
First-Site-Name\Servers, and then click SERVER1, as shown in the following
figure.

4. In the left pane, select and right-click NTDS Settings, and then select
Properties.
5. On the NTDS Settings Properties dialog box, select the Global Catalog check
box, as shown in the following figure, and then
click OK.

6. Close the Active Directory Sites and Services


console.

Results: After completing this exercise, you will have explored the
Server Manager console and promoted a member server to be a
domain controller.
Shut down and revert the DC1 and SERVER1 virtual machines to
prepare for the next exercise.

You might also like