Название: Windows Server 2022 & Powershell All-in-One For Dummies
Автор: Sara Perrott
Издательство: John Wiley & Sons Limited
Жанр: Зарубежная компьютерная литература
isbn: 9781119867838
isbn:
Seeing What Server Manager Has to Offer
When you first install Windows Server 2022 and you log in, the first screen that you’re greeted with is Server Manager (see Figure 1-3). This screen gives you a central area to do all the configuration tasks you need to do on your server. It presents a handy menu to manage all the roles and features installed on your server as well.
FIGURE 1-3: Server Manager is the landing page you get when you log in to Windows Server 2022.
Server Manager will allow you to manage remote servers, not just the local server. The remote servers need to be added to Server Manager before they can be managed, and some firewall ports may need to be opened to allow full functionality. After remote servers are added, you can run PowerShell against them and perform basic management tasks like shutting down, connecting via Remote Desktop Protocol (RDP), and so on. You can manage up to 100 remote servers with Server Manager. This number may be lower depending on what you’re running on the manage servers. If you’re running large workloads, then you may not be able to manage as many.
Server Manager can be used to manage the same operating system it’s installed on, as well as operating systems that are older than what is installed. It can’t manage the operating system on a server that’s running a newer version of the operating system. For example, a server running Server Manager on Server 2019 can’t manage a server running Windows Server 2022.
Figure 1-4 shows some of the options available through the Server Manager menu. You may notice that Remote Desktop Connection is grayed out. This is because I was logged on the server that is in the window.
FIGURE 1-4: Managing servers with Server Manager.
Here’s a list of some of the more commonly used features of Server Manager:
Managing local and remote servers
Managing roles and features on servers (To install or remove roles and features, the target system must be running at least Server 2012)
Starting management tools like Windows PowerShell and MMC snap-ins
Reviewing events, performance data, and results from the Best Practices Analyzer
Windows Admin Center: Your New Best Friend
Windows Admin Center is a newer server management tool from Microsoft. Microsoft has been investing heavily in Windows Admin Center, and it shows. You can use it to manage your on-premises systems, as well as your systems in Azure. Windows Admin Center is accessible through your browser and allows you to perform nearly all your administrative tasks through the same interface. Best of all, it’s free! You just need to pay for the license of the operating system it’s running on.
Admin Center can be used to administer Windows Server 2022, 2019, 2016, 2012R2, and 2012 with full support for all functionality.
By default, Windows Admin Center uses TCP port 6516, so you need to allow this through your server firewalls depending on how your network is architected. To access the Windows Admin Center Dashboard, you need the hostname of the system that Admin Center is installed on. In Figure 1-5, notice that the address is localhost:6516. That’s because I’ve installed it on a Windows 10 client in Desktop mode. Desktop mode is typically used by a single system administrator, as opposed to Gateway mode, which is available for a larger number of staff.
The first screen (refer to Figure 1-5) shows your connected devices.
If you click one of the devices in the list, you get a management view specific to that device. For Figure 1-6, I clicked on server2022-dc. You see an overview of the system as well as some management options. On the left side of the screen, there are many more options you can work from.
FIGURE 1-5: You can see all your connected devices on the All Connections page.
FIGURE 1-6: The Overview page shows, well, an overview of the device you clicked.
Installation of Windows Admin Center is simple. You download the Microsoft Installer (MSI) package from the Microsoft Windows Admin Center website (www.microsoft.com/en-us/cloud-platform/windows-admin-center
). Before you install it you need to decide if you’re simply going to install it on your desktop client or if you want to install it on a server. My recommendation would be to use your desktop if you’re just trying it out or if you manage only a few servers. If you’re going to use Windows Admin Center in all its glory, install it on a server so that all your administrators can get to it. You’ll be their hero!
You can install Windows Admin Center on a supported version of Windows 10 or on Windows Server 2016 and newer. To manage older servers — including 2012 and 2012 R2 — you need to install Windows Management Framework 5.1 on each of those servers.
When you install Windows Admin Center on Windows 10, it’s installed in Desktop mode, which means that you access it using https://localhost:6516
. When Windows Admin Center is installed on a server, it installs in gateway mode, which can be accessed with the server name in the URL (for example, https://servername
). No port number necessary!
Localhost refers to the local loopback address on a system which can also be accessed at the IP address 127.0.0.1.
Installing Windows Admin Center onto a domain controller is not supported. As you might imagine, this would be a terrible idea! Because Windows Admin Center exposes its services via a web page, it provides a point of attack that would not normally be there.
Some of the coolest features of Windows Admin Center include the following:
Centralized server management
Integration with Azure so you can manage on-premises and cloud resources from the same console
Cluster management tools built into Windows Admin Center
Showscript, which allows you to see the PowerShell scripts that are being run to do your administrative work