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)

Converting a GPO to DSC

DSC is all very well, but if you're an organization that has decades of history on Windows Server, then chances are you have a lot of things hidden away in GPOs. We looked at these back in Chapter 10, Group Policy. They are a great way of doing mass configuration, but they lack much of the finesse of DSC. After all, the GPO scheme is 20 years old now.

If you're looking to replace some of your old GPOs and extend them with DSC, the good news is that PowerShell has a way we can get started with this.

Getting ready

The easiest place to do this from is a Windows 10 computer that has Remote Server Administration Tools (RSAT) installed. Instructions on how to do this can be found in Chapter 1, Learning the Interface, in the Administering Server 2019 from a Windows 10 machine recipe.

How to do it…

From our computer running Windows 10 with RSAT, do the following:

  1. Open PowerShell as administrator.
  2. We need to decide which Group...