Book Image

Windows Server 2016 Automation with PowerShell Cookbook - Second Edition

By : Thomas Lee, Ed Goad
Book Image

Windows Server 2016 Automation with PowerShell Cookbook - Second Edition

By: Thomas Lee, Ed Goad

Overview of this book

This book showcases several ways that Windows administrators can use to automate and streamline their job. You'll start with the PowerShell and Windows Server fundamentals, where you'll become well versed with PowerShell and Windows Server features. In the next module, Core Windows Server 2016, you'll implement Nano Server, manage Windows updates, and implement troubleshooting and server inventories. You'll then move on to the Networking module, where you'll manage Windows network services and network shares. The last module covers Azure and DSC, where you will use Azure on PowerShell and DSC to easily maintain Windows servers.
Table of Contents (21 chapters)
Title Page
Credits
About the Author
Acknowledgment
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Using DSC partial configurations


PowerShell V5 introduced a new feature with DSC: partial configurations. A partial configuration, as the name suggests, is part of the configuration you wish to see applied to a given node.

Partial configurations allow you to share the configuration of a node between multiple teams. For example, you might want the central IT team to define the basic configuration of a node. Another team could be responsible for deploying a web application to that same node. With PowerShell 4, you would have needed to put all the configuration components into a single configuration document/MOF file and deploy that to the node.

To support partial configurations, you must configure each node's LCM to define the partial configurations, and how they are to be deployed. Each partial configuration can be either pushed or pulled. Thus, you can deploy partial configurations that direct the node to pull the basic host configuration for an IT central configuration server and to pull...