Exercise 3: Using Windows Powershell To Manage Servers: Get-Service - Where-Object ($ - .Status - Eq "Running")
Exercise 3: Using Windows Powershell To Manage Servers: Get-Service - Where-Object ($ - .Status - Eq "Running")
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.
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
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
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.
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.
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.
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.
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.