This is the code repository for Administering Windows Server 2019 with PowerShell Cookbook, published by Packt. This repository is the author's personal GitHub repository.
This repo contains final working code. During the production process, some printed code has been improved for layout. So some changes are to be expected
This book takes you through the use of PowerShell in a variety of scenarios using many of the rich set of features included in Windows Server 2019.
This book contains the following chapters:
Chapter 1, Establishing a PowerShell Administrative Environment looks at setting up your work station and your environment to make use of PowerShell.
Chapter 2, Managing Windows Networking shows you how to manage Windows networking with PowerShell. Networks are today central to almost every organization and this chapter looks at a variety of network-related tasks, including looking at new ways (with PowerShell) to do old things, setting up DNS, DHCP, and Active directory.
Chapter 3, Managing Windows Active Directory examines how to install, manage and leverage Active Directory, including managing AD objects and Group Policy.
Chapter 4, Managing Windows Storage looks at managing storage in Windows Server 2019.
Chapter 5, Managing Shared Data examines different ways to share data with Windows Server and PowerShell including SMB shares, iSCSI and Distributed File System.
Chapter 6, Managing Windows Update helps you get to grips with managing updates via Windows Update. With the importance of keeping all your Windows clients and servers fully patched.
Chapter 7, Managing Printers shows you how to manage printers, printer queues, and printer drivers, including deploying printers via Group Policy.
Chapter 8, Leveraging Containers introduces Docker Containers in Windows Server 2019. You download and use container images as well as build your own.
Chapter 9, Managing Windows Internet Information Server shows you how to conduct a variety of IIS-related tasks, including IIS installation and configuration, setting up SSL and managing cipher suites, as well as configuring Network Load Balancing.
Chapter 10, Managing Desired State Configuration shows how to use this important feature to ensure a server is setup correctly and continues to remain so. This covers setting up a pull server and configuring partial configurations.
Chapter 11, Managing Hyper-V demonstrates the use of Hyper-V. This chapter shows you how to build and deploy VMs with Hyper-V. This includes nested Hyper-V running a Hyper-V VM inside another Hyper-V VM which is useful for a number of scenarios.
Chapter 12, Managing Azure looks at managing IAAS and PAAS resources in Azure using PowerShell. To test the recipes in this chapter, you need access to Azure. This chapter describes how to setup a Virtual Machine, an Azure website and an SMB3 Azure based file share. There is a bonus recipe (not in the printed book) showing how to create an Azure VM from a local VHD file.
Chapter 13, Managing Performance and Usage shows you how to measure, monitor, and report on the performance of your Windows 2019 servers. There are several recipes that demonstrate how to get specific performance measurements and how to create graphs of performance for further analysis.
Chapter 14, Troubleshooting Windows Server looks at a number of aspects of both reactive and proactive troubleshooting. This includes getting events from the event log and using the Best Practice Analyzer contained in Windows Server 2019.
If you feel this book is for you, get your copy from Smile.Amazon.Com or if you are in the UK get it from Smile.Amazon.Co.Uk.
All of the code is organized into folders. Each folder contains the recipes in a chapter of the book.
As the practical examples involve the use of Windows Server 2019, Windows 10 and Azure, you need access to all of these. You can obtain the ISO images for WIndow 10 and Windows Server 2019 from the Internet. You can also get a free Azure subscription to test the Azure related recipes. The book also uses some third party software - details of where to find such tools is contained in the relevant chapter.
With the following software and hardware list you can run all code files present in the book .
Chapter | Software required | OS required | Hardware |
---|---|---|---|
ALL | Any text editor, Visual Studio Code, and Windows PowerShell 5.1 | Computer with Windows 10 (latest) or Windows Server 2019 - both 64 bit edition. | Any 64-bit computer capable of running Hyper-V (Intel or AMD) plus at least 8 GB of RAM. |
Thomas Lee is a consultant, trainer and author. He has more than 50 years of experience in various software and hardware development projects for various companies across the globe. He lives today in and old cottage in the English countryside with his wife and daughter, a nice wine cellar, and a great collection of Live recordings of the Grateful Dead.
See Thomas's Amazon Author Page
If you have issues with the specific recipes, file an issue at: The recipe GitHub Repository