Book Image

Windows Server 2019 Cookbook - Second Edition

By : Mark Henderson, Jordan Krause
Book Image

Windows Server 2019 Cookbook - Second Edition

By: Mark Henderson, Jordan Krause

Overview of this book

Do you want to get up and running with essential administrative tasks in Windows Server 2019? This second edition of the Windows Server 2019 Cookbook is packed with practical recipes that will help you do just that. The book starts by taking you through the basics that you need to know to get a Windows Server operating system working, before teaching you how to navigate through daily tasks using the upgraded graphical user interface (GUI). You'll then learn how to compose an optimal Group Policy and perform task automation with PowerShell scripting. As you advance, you’ll get to grips with faster app innovation, improved Windows security measures, and hybrid cloud environments. After you’ve explored the functions available to provide remote network access to your users, you’ll cover the new Hyper-V enhancements. Finally, this Windows Server book will guide you through practical recipes relating to Azure integration and important tips for how to manage a Windows Server environment seamlessly. By the end of this book, you’ll be well-versed with Windows Server 2019 essentials and have the skills you need to configure Windows services and implement best practices for securing a Windows Server environment.
Table of Contents (18 chapters)

Managing remote servers from a single pane with Server Manager

If you've used a much older version of Windows Server (say, Server 2003), you may have noticed that Server Manager has changed significantly over the past couple of versions of Windows Server. Part of these changes are a shift in mindset, where the emphasis is now placed on the remote management of servers. Server Manager in Windows Server 2019 can be used to manage and administer multiple systems at the same time, all from your single pane of glass – the monitor that you are sitting in front of.

Server Manager makes use of the Windows Remote Management (WinRM) tools to remotely manipulate servers. Historically, most of us who administer Windows Servers make extensive use of RDP, often having many windows and connections open simultaneously. This can cause confusion and can lead to tasks being accomplished on servers for which they are not intended. By using Server Manager from a single machine to manage multiple servers in your network, you will increase your administrative efficiency, as well as minimize human error by having all the management processes happen from a single pane of glass. In this recipe, you are going to learn how to manage both the local server we are logged into as well as a remote server from the same Server Manager window.

Getting ready

For this recipe, we need two servers. One is the machine we are physically logged into. The other is a server on the same network that we can contact from our primary server so that we can manage it from our local Server Manager.

How to do it…

To manage a local as well as a remote server from the same Server Manager window, perform the following steps:

  1. Log in to your primary server and launch Server Manager. You will see in the upper-left corner that the only server you have listed is the Local Server that we are logged into:
    Figure 1.9 – Local Server open on Server Manager

    Figure 1.9 – Local Server open on Server Manager

  2. Now, head over toward the top-right of Server Manager and click on the Manage button. In this menu, click on Add Servers:
    Figure 1.10 – Using Add Servers in Server Manager

    Figure 1.10 – Using Add Servers in Server Manager

  3. If your servers are part of a domain, finding remote machines to manage is very easy. Simply select them from the default Active Directory tab. If they are not yet joined to your domain, you can simply click over to the tab labeled DNS and search for them from that screen:
    Figure 1.11 – Finding and attaching remote machines using Active Directory

    Figure 1.11 – Finding and attaching remote machines using Active Directory

  4. After adding the servers that you want to manage, if you go ahead and click on All Servers in the left window pane, you will see the additional servers listed that you have selected. If you double-click or right-click on those remote server names, you will see that you have many options available to you to remotely manage those machines without having to log into them:
Figure 1.12 – Using All Servers to manage servers

Figure 1.12 – Using All Servers to manage servers

Tip

Not all servers and roles can be managed this way. It is possible to restrict remote management on servers through Group Policy. If that has been done in your environment, you may find that remotely administering them from a centralized console is not possible, and you would have to lift those restrictions on your servers.

How it works…

This recipe was written with the most common network scenario in mind, which is a domain environment where both servers have been joined to the domain. If you are working with standalone servers that are part of a workgroup, rather than being joined to a domain, you will have some additional considerations. In the workgroup scenario, WinRM will need to be enabled specifically, and the Windows Firewall will have to be adjusted in order to allow the right ports and protocols for that WinRM traffic flow to happen successfully. In general, though, you mainly will be working within a Microsoft domain network, in which case these items are not necessary.

See also

  • Administering Server 2019 from a Windows 10 machine