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

Configuring Local Configuration Manager


The LCM is a key component of DSC that initially shipped within PowerShell V4. LCM is a Windows service that runs on each DSC target node and is responsible for receiving configuration information and ensuring the node is configured in the desired state (and remains that way).

The LCM has two mechanisms for desired state delivery: push and pull. The earlier recipes in this chapter demonstrate the push model: you create a configuration and its related MOF file on one node, and push that configuration to another node. In the pull model, you configure the node with details of where and how to find a pull server. Once configured, a node can pull configurations from the configured pull server.

With this recipe, which you run on SRV2, you configure the LCM based on PowerShell V5/5.1. PowerShell V4 used a different approach to configuring the LCM. In this recipe, you configure the LCM on SRV2 and set up SRV2 to use SRV1 as an SMB pull server. You setup SRV1...