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

Configuration


After the completion of the setup process, the following PowerShell cmdlets were executed on the virtual machine in an elevated PowerShell console:

#Enable SMB IN, ICMP ECHO IPv4
$FileSharing = ("FPS-SMB-In-TCP","FPS-ICMP4-ERQ-In")
$FileSharing | %{ Enable-NetFirewallRule -Name $_}

#Required WMI rules
$WMI = ("WMI-ASYNC-In-TCP","WMI-RPCSS-In-TCP","WMI-WINMGMT-In-TCP")
$WMI | %{ Enable-NetFirewallRule -Name $_}

#Enable PowerShell Remoting
Enable-PSRemoting -Force 

These cmdlets enable the following Firewall rules:

  • File and Printer Sharing (SMB-In)

  • File and Printer Sharing (Echo Request - ICMPv4-In)

  • Windows Management Instrumentation (ASync-In)

  • Windows Management Instrumentation (DCOM-In)

  • Windows Management Instrumentation (WMI-In)

By enabling these Firewall rules within the VM template, any VM created using this template will automatically have these rules enabled. Additionally, the PowerShell cmdlets ensure that PowerShell Remoting is enabled.