Book Image

Hyper-V Network Virtualization Cookbook

By : Ryan Boud
Book Image

Hyper-V Network Virtualization Cookbook

By: Ryan Boud

Overview of this book

Table of Contents (16 chapters)
Hyper-V Network Virtualization Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Applying rules to a list of VMs


Hyper-V supports a variety of operating systems, including those that do not have inbuilt firewalls like Windows Server 2012 R2. Using the Hyper-V Extended ACLs, you can provide basic levels of protection to these guest virtual machines.

Additionally, it may be a case that some users do not necessarily lock down their servers as much as the company requires. This can be typical of a short-lived server such as a test server.

Through the use of PowerShell, it is possible to apply a large number of Port ACLs to virtual machines quickly and efficiently.

This recipe will show you how to use a CSV file and PowerShell to apply a set of Port ACLs to multiple virtual machines.

Getting ready

This recipe uses a CSV file and it is recommended to create this in Microsoft Office Excel; having access to a computer with it installed would be beneficial.

How to do it...

The following diagram shows the high-level steps involved in this recipe:

Now perform the following steps:

  1. In Excel...