Administering Windows 10
Total Page:16
File Type:pdf, Size:1020Kb
Module 5: Administering Windows 10 Lab A: Troubleshooting Remote Computers Through Remote Desktop (VMs: 10982D-LON-DC1, 10982D-LON-CL1, 10982D-LON-CL2) Exercise 1: Using Remote Desktop Task 1: Configure Windows Firewall and Remote Desktop Settings 1. On LON-CL1, click Start, type Control Panel, and then press Enter. 2. In Control Panel, click System and Security. 3. Under Windows Defender Firewall, click Allow an app through Windows Firewall. 4. In the Name list, locate Remote Desktop. Select the Domain, Private, and Public check boxes, and then click OK. 5. In System, click Allow remote access. 6. In System Properties, under Remote Desktop, click Allow remote connections to this computer. 7. Click Select Users, and then click Add. 8. In the Select Users or Groups dialog box, in the Enter the object names to select (examples) text box, type Adam, click Check Names, and then click OK. 9. In the Remote Desktop Users dialog box, click OK. 10. In the System Properties dialog box, click OK. 11. Close all open windows. 12. Switch to LON-CL2. 13. If necessary, sign in as Adatum\Administrator by using the password Pa55w.rd. 14. Click the Start menu, type mstsc and then click Remote Desktop Connection. 15. In the Remote Desktop Connection dialog box, in the Computer text box, type LON-CL1 and then click Show Options. 16. Click the Advanced tab. 17. Under Server authentication, in the If server authentication fails list, click Connect and don’t warn me. Task 2: Establish a Remote Desktop Connection 1. In the Remote Desktop Connection dialog box, click Connect. 2. In the Windows Security dialog box, click More choices and then click Use a different account. 3. In the User name text box, type Adatum\Adam. In the Password text box, type Pa55w.rd and then click OK. 4. When prompted, click Yes to proceed with the sign in. 5. Switch back to LON-CL1. 6. At the Remote Desktop Connection prompt, click OK. 7. Switch back to LON-CL2. 8. Right-click Start, and then click System. 9. Notice the computer name. 10. Right-click Start, and then click Computer Management. 11. Expand the Event Viewer\Custom Views node, and then click Administrative Events. 12. In the Query Error dialog box, click OK. 13. Review the listed events. 14. Close all open windows. 15. Close the Remote Desktop session. 16. In the Remote Desktop Connection dialog box, click OK. 17. Close all open windows. 18. Switch back to LON-CL1. 19. Verify that you have been signed out. Prepare for the next lab • Keep the virtual machines running for the next lab. Results: After completing this exercise, you should have successfully used Remote Desktop to manage a remote computer. Lab B: Troubleshooting a Remote Computer by Using Windows PowerShell Exercise 1: Using Windows PowerShell Remoting Task 1: Enable Windows PowerShell Remoting 1. Switch to LON-CL1. 2. If necessary, sign in as Adatum\Administrator by using the password Pa55w.rd. 3. Right-click Start, and then click Windows PowerShell (Admin). 4. At the Windows PowerShell command prompt, type the following command, and then press Enter: Winrm quickconfig 5. When prompted, press Y, and then press Enter. 6. Press Y, and then press Enter again. 7. At the Windows PowerShell command prompt, type the following command, and then press Enter: Enable-PSRemoting -Force 8. Switch to LON-CL2. 9. If necessary, sign in as Adatum\Administrator by using the password Pa55w.rd. 10. Click Start, locate Windows PowerShell, right-click Windows PowerShell, and then click Run as administrator. 11. Repeat steps 4 through 7. Task 2: Use Windows PowerShell Remoting from LON-DC1 1. Switch to LON-DC1. 2. Right-click Start, and then click Windows PowerShell (Admin). 3. At the Windows PowerShell command prompt, type the following command, and then press Enter: Invoke-Command –ComputerName LON-CL1 –ScriptBlock {Get-EventLog –log system} If you get an error, restart LON-DC1, restart LON-CL1, and then perform steps 2 and 3 again. 4. At the Windows PowerShell command prompt, type the following command, and then press Enter: $s = New-PSWorkflowSession –ComputerName LON-CL1 5. At the Windows PowerShell command prompt, type the following command, and then press Enter: Enter-PSSession $s 6. At the Windows PowerShell command prompt, type the following command, and then press Enter: Get-Command 7. At the Windows PowerShell command prompt, type the following command, and then press Enter: exit 8. At the Windows PowerShell command prompt, type the following command, and then press Enter: Invoke-Command -Session $s -ScriptBlock {$c = Get-command} 9. At the Windows PowerShell command prompt, type the following command, and then press Enter: Invoke-Command -Session $s -ScriptBlock {$c.count} 10. At the Windows PowerShell command prompt, type the following command, and then press Enter: Invoke-Command -ComputerName LON-CL1, LON-CL2 -ScriptBlock {Get-Culture} 11. At the Windows PowerShell command prompt, type the following command, and then press Enter: $s = New-PSWorkflowSession -ComputerName LON-CL1,LON-CL2 12. At the Windows PowerShell command prompt, type the following command, and then press Enter: Invoke-Command -Session $s -ScriptBlock {$c = Get-command} 13. At the Windows PowerShell command prompt, type the following command, and then press Enter: Invoke-Command -Session $s -ScriptBlock {$c.count} Task 3: Use Windows PowerShell Remoting from Windows PowerShell ISE 1. On LON-DC1, on the taskbar, right-click the Windows PowerShell icon, and then click Run ISE as Administrator. 2. In the Administrator: Windows PowerShell ISE window, click File, and then click New Remote PowerShell Tab. 3. In the New Remote PowerShell Tab window, enter LON-CL1 after Computer, and then click Connect. 4. In the LON-CL1 window, type the following command, and then press Enter: Get-NetIPConfiguration 5. In the LON-CL1 window, type the following command, and then press Enter: Restart-Computer -Force 6. Verify that LON-CL1 has restarted. Results: After completing this exercise, you should have successfully established a remoting session and performed remote management of LON-DC1 with Windows PowerShell cmdlets. Prepare for the next module When you have finished the lab, revert the virtual machines to their initial state. 1. On the host computer, start Hyper-V Manager. 2. In the Virtual Machines list, right-click 10982D-LON-CL1, and then click Revert. 3. In the Revert Virtual Machine dialog box, click Revert. 4. Repeat steps 2 and 3 for 10982D-LON-DC1 and 10982D-LON-CL2. .