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

Implementing nested Hyper-V


Nested Hyper-V is a new feature in Windows 2016 and Windows 10 (Anniversary update and later). Nested Hyper-V enables a Hyper-V VM to host VMs which also have virtualization enabled. You could, for example, take a physical host (say, HV1) and on that host run a VM (say VM1). With nested Hyper-V, you could enable your VM1 VM to host VMs and create a nested VM inside it called Nested1.

Nested VMs have a number of uses. First, nested MVs hosted in one VM are provided hardware isolation from nested VMs run in other VMs. This provides a further level of security for virtual machines. It's also useful for testing and education/training. In a training course, you could give a student one VM and enable him to create additional VMs as part of the course. And most IT pros just find it cool! You could, for example, run all the recipes in this chapter using Nested VMs.

Enabling nested Hyper-V is very simple. First, you must update the virtual CPU in the VM you want to support...