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)

Renaming and domain joining

Every server that you build will need a hostname, and most likely will need to be joined to your domain. We are all likely familiar with doing these things with the mouse using system properties, but have you ever thought of using a command interface to do these tasks quickly? Let's work together to discover how PowerShell can, once again, help make these necessary tasks more efficient.

Getting ready

We have just finished turning on a new Windows Server 2019 machine. Immediately following the mini-setup wizard in order to get logged into Windows, let's use PowerShell to set our hostname and join the system to our domain.

How to do it…

Follow these steps to rename and domain join this new server with PowerShell:

  1. Open a PowerShell session as an administrator.
  2. In order to rename our new server WEB02, input the following command. Using the -Restart flag will ensure that our server reboots following the name change:
    Rename...