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 machine connections


With Windows Server 2012 R2 Hyper-V, Hyper-V is able to redirect local resources to a virtual machine session using the Virtual Machine Connection tool. This enhanced session mode connection uses the remote desktop connection session via the virtual machine bus (VMBus). Therefore, the network connectivity to the virtual machine is not required.

Let's look at the cmdlets that will be used to manage the virtual machine connect feature:

The preceding command gets a list of all the users who have access to connect to any virtual machine on the local computer. The following example assumes that the Grant-VMConnectAccess cmdlet has been run previously for at least one user account:

The command shown in the following screenshot provides a user with virtual\administrator access to connect to a virtual machine named exchange1:

The command shown in the following screenshot revokes the access of user, virtual\administrator, to connect to a virtual machine named exchange1...