2

#PSTip Hyper-V VM Connection Authorization

Note: This tip requires PowerShell 3.0 or above.

Virtual Machine Connection Authorization allows users to connect to virtual machines using the VMConnect interface in Hyper-V (and Hyper-V RSAT tools). Virtual Machine Connection authorization is configured by a Hyper-V Administrator using the Grant-VMConnectAccess cmdlet.

Grant-VMConnectAccess -VMName TestVM -UserName domain\user1

VMConnect Authorization uses an Access Control List (ACL) that is placed inside the virtual machine configuration file. Access can also be revoked using Revoke-VMConnectAccess.

Revoke-VMConnectAccess -VMName TestVM -UserName domain\user1

With Get-VMConnectAccess you can determine which users have access to which virtual machines.

Filed in: Columns, Tips and Tricks Tags: , ,

2 Responses to "#PSTip Hyper-V VM Connection Authorization"

Leave a Reply

Submit Comment

© 2016 PowerShell Magazine. All rights reserved. XHTML / CSS Valid.
Proudly designed by Theme Junkie.
%d bloggers like this: