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

Restore the registry from a backup


In Windows, applications such as the registry can register with WSB. These applications contain a Volume Shadow Copy Service (VSS) writer. WSB uses that writer in the backup process to ensure application data is consistent when WSB takes the backup. The feature enables WSB to restore the application from the backup. In this recipe, you create a backup of a system including the registry and restore the registry from a backup to view the recovered hive.

Getting ready

This recipe uses the application server SRV1. Ensure the server has the WSB feature added, as shown in the Configure and set backup policy recipe. Your VM needs to have a second VHD added and setup as the E: drive. You use this second drive as the backup target. If you are creating a new virtual hard drive to test this recipe, ensure you bring the drive online, initialize it, and format it.

How to do it...

The steps for the recipe are as follows:

  1. You begin this recipe by creating keys/values in the...