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)

Working with WMI filters to assign GPOs

Previously in this chapter, we looked at how we can use OUs and security groups to filter our GPOs. This is useful in a lot of situations. If you have a neatly organized Active Directory environment, everything should be filed away into an appropriate group or OU. But what if you don't have a neatly organized OU, or if you want to filter your GPOs on something other than OU?

For example, you might have a GPO you only want applied to laptops, but your OUs are not organized and just dumps all laptops and desktops together into a single OU. Or perhaps you want to apply a GPO only to virtual machines, but there's no way to tell from Active Directory whether a machine is a virtual machine or not. Another common case is that you have a lot of computers in a single OU, but you only want to apply a GPO to machines that match a certain name.

The good news is that we can do this by using something called WMI filters. WMI stands for Windows...