PowerShell Logo Small

Grant-VMConnectAccess



This is the built-in help made by Microsoft for the command 'Grant-VMConnectAccess', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Grants a user or users access to connect to a virtual machine or machines.

SYNTAX


Grant-VMConnectAccess [-VMName] <String[]> [-UserName] <String[]> [-ComputerName <String[]>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]
Grant-VMConnectAccess [-VM] <VirtualMachine[]> [-UserName] <String[]> [-ComputerName <String[]>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]
Grant-VMConnectAccess [-VMId] <Guid[]> [-UserName] <String[]> [-ComputerName <String[]>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Grant-VMConnectAccess cmdlet grants access to a user or users to connect to a virtual machine or machines. The cmdlet is intended for use in providing other applications
with the appropriate permissions required to initiate a session with Virtual Machine Connection. Examples of such applications are Virtual Machine Manager.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306884

REMARKS

<

Examples


Example 1

PS C:\>Grant-VMConnectAccess –VMName VM1 –UserName Contoso\John



This command grants user Contoso\John access to connect to a virtual machine named VM1.