Book Image

Microsoft Hyper-V PowerShell Automation

By : Vinith Menon
Book Image

Microsoft Hyper-V PowerShell Automation

By: Vinith Menon

Overview of this book

Table of Contents (13 chapters)
Microsoft Hyper-V PowerShell Automation
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Managing virtual switches and virtual network adapters


The Hyper-V PowerShell module comes with a set of cmdlets, which can be used to manage the virtual machine network adapters and virtual switches. Virtual machine networks and switches form the core networking component of virtual machines. Virtual switch is a software-based network switch that helps in connecting virtual machines to virtual and physical networks. They can be of three types: external, internal, and private. Once the virtual switches are created, the virtual network adapters created for a virtual machine can be tagged to these virtual switches, allowing the virtual machine to connect to both physical and virtual networks. The virtual network adapters assigned to a virtual machine require it to have the required drivers provided by integration services to be installed on it.

Open a PowerShell prompt, and type the cmdlets shown in the following screenshot to get a list of all the cmdlets that are available to manage the virtual...