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

Create a virtual machine


You create Hyper-V virtual machines in several distinct steps. First, you need to create the VM itself—creating a virtual machine and the virtual hard drive and assign hardware such as memory, CPU cores, and DVD drives (and drive contents).

Once the VM is created, you need to work out how to install an OS into the VM. This process can be complex if you use native commands.

In this recipe, you create a simple VM that installs the OS into the VM based on GUI input. This recipe is therefore often the precursor to other configuration (that is you create a new VM and then add features and configure it per your requirements. This is the same experience you would observe if you had a physical machine, with an empty C: drive that you boot from a Windows Server 2016 installation ISO.

Getting ready

For this recipe, you need a Hyper-V VM host—use HV1 which needs an H: drive. The H: drive is where you store the VM and virtual disks.

You also need the ISO image for Windows Server...