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

Backup and perform bare metal recovery


The Bare metal recovery (BMR) is the process of restoring a backup onto a new machine. Suppose your file server, FS1, has a catastrophic failure and has to be replaced by a new server computer. To get this new host up and running, you could manually run through the setup of the OS, add relevant print drivers, re-define the printers, and then restore the data. Or you could just do a BMR from a backup. This recipe shows how to do bare metal recovery using the PowerShell cmdlets in the WindowsServerBackup module and then the bare metal recovery feature of Windows Setup.

Getting ready

To enable you to see BMR in action on a server, you must first install the Windows backup feature loaded on the server you wish to back up. You run the first part of this recipe on your server to create a backup capable of being restored using BMR. Then, after replacing the hardware, you perform a recovery onto to a new server based on the backup previously taken. This recipe...