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

Finding and installing DSC resources


A DSC resource is a specially created PowerShell module that enables DSC to configure various aspects of a node. The WindowsFeature DSC resource, for example, enables you to ensure that a particular node of a particular Windows feature installed. You could also specify that a particular Windows feature should not be present.

As you have seen in this chapter so far, Windows comes with a few DSC resources built in. But these do not provide broad coverage. For example, you can use the built-in File resource to copy the source files for a small web application onto a new server. But the built-in resources do not allow you to specify the application's settings (what the application name is, which application pool it runs in, and so on) which is where add-on DSC resources come in.

The community, which includes various Microsoft teams, has been busy since the release of DSC with PowerShell V4 and has created a large range of additional resources. These resources...