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

Configuring VM hardware


Configuring hardware in your virtual machine is very much like configuring a physical computer. With a physical computer, you can adjust the CPUs and BIOS settings. You can also adjust physical RAM, network interfaces, disk interfaces and disk devices, and DVD drives (with/without a loaded DVD), and so on. Each of these physical components is provided within a Hyper-V VM and the PowerShell cmdlets make it simple to adjust the virtual hardware in a VM.

In this recipe, you adjust the VM's BIOS, CPU count, memory, add a SCSI controller, and finally create and add a virtual disk to the SCSI controller. Just like in most commercial grade physical servers, not all of these components can be changed while the server is running. You run this recipe from HV1 and turn the VM1 VM off before configuring the virtual hardware.

This recipe does not cover the virtual NIC which you need in order to use the VM in your network. Configuring the VM's networking is covered in the Configuring...