Windows Server 2022 & Powershell All-in-One For Dummies. Sara PerrottЧитать онлайн книгу.
advanced storage options. Some of these features include the following:
Unlimited Hyper-V containers in addition to unlimited Windows containers
Unlimited Hyper-V virtual machines and support for shielded virtual machines
Storage Replica (unlimited) and Storage Spaces Direct
Software-defined networking
Network controller
Host Guardian Hyper-V support
Note: There is a specialized version of Windows Server Datacenter referred to as the Azure Edition. Windows Server 2022 Datacenter: Azure Edition provides greater integration with the Microsoft Azure cloud. You can only get this version through Microsoft Azure by installing it as a virtual machine in Azure. You can’t install it on your own on-premises systems or run it on your own hypervisors. New features include the following:
Azure Extended Network
Hotpatching
SMB over QUIC
Shielded VM support
Note: You won’t see Datacenter: Azure Edition called out in this book specifically. However, many of the topics I cover in this book can be applied to Datacenter: Azure Edition.
Walking the Walk: Windows Server 2022 User Experiences
Windows Server 2022 has two user experiences to choose from. What you use will depend on the workload you’re wanting to support, as well as organizational requirements. In this section, I explain the Desktop Experience and the Server Core experience, as well as some pros and cons of each.
Desktop Experience
Desktop Experience is what you would consider to be the standard graphical user interface (GUI) that you may have used in previous versions of the Windows Server operating systems. It allows you to interact with the system with buttons and menus rather than through the command line. Server with Desktop Experience can be managed through Group Policy if attached to an Active Directory domain, and workgroup (non-domain) servers can be managed via local Group Policy.
Desktop Experience tends to be the easier form of server installation and administration for beginning system administrators, but I highly recommend that you don’t rely on the GUI (shown in Figure 1-1). Become a PowerShell ninja instead! PowerShell is a very versatile language and can be used on a variety of systems, including some of the newer versions of Linux.FIGURE 1-1: Server with Desktop Experience.
Server Core
Server Core (shown in Figure 1-2) provides a much simpler interface if you connect to the console. You’re greeted by a somewhat familiar-looking command window that prompts you for your username and password. After you’ve logged in, by default you’re presented with the sconfig window. When you choose to exit to command line from sconfig, you’re given a PowerShell window to interact with. Initial configuration is done with the sconfig utility, though it could be done through a PowerShell script or PowerShell Desired State Configuration (DSC). This experience can be managed through Group Policy if attached to an Active Directory domain or through local Group Policy if they’re workstation servers.
FIGURE 1-2: Server Core’s sconfig utility is where you perform initial configuration.
Nano
Nano provides an even simpler interface and a much more limited console, which is referred to as the Recovery Console. It isn’t available through the regular installer on the disc; instead, you have to download the container image from Microsoft. Nano has a much smaller footprint, both in terms of disk and compute needs, than Desktop Experience or Server Core. Because it has a smaller overall footprint, the attack surface is also reduced. Windows Server Nano 2022 is available only as a container base operating system image and can only be run as a container on a container host.
Nano can’t be managed through Group Policy. You need to use PowerShell DSC instead if you want to manage Nano at scale. You may be asking why you would even use Nano when it’s such a limited version of the operating system. If you need to run container workloads that use .NET, Nano is an excellent candidate because it has been optimized to run .NET Core applications.
If you want to check it out, you can download the Nano server images from Microsoft’s container registry on DockerHub with this command:
docker pull mcr.microsoft.com/windows/nanoserver
You can also go to https://hub.docker.com/_/microsoft-windows-nanoserver
to see more information about the current Nano server container image. This includes a description of the image, reviews, and additional resources.
If you want to find out more about containers and using Docker commands, check out Book 8.
Note: You won’t really see Nano discussed in depth anywhere in this book because you’re far more likely to encounter the Desktop Experience or Server Core installations of Windows Server 2022.
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.