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

Configure and set backup policy


With WSB, you create a backup policy that describes what you want to backup from your server (backup source), where you want to put the backup (backup target), and when you want the backup to take place (the backup schedule). You first create an empty policy in memory or get an editable copy of the active backup policy. You then configure the policy object with a backup source and backup to your requirements. You then either save the policy as the (new!) active policy or use it to run a one-off backup. Once you have set an active policy, WSB runs the backup automatically based on the schedule you define when you populate the backup policy.

In this recipe, you create and configure a policy that backs up the C: drive every morning at 06:00. This policy object is the starting point for examining backup with WSB. Later recipes enable you to perform, explicitly, system state backup, one-off backup, selective file backup, and VM backup (and restores)—all of which...