CmdID / PowerShell / Cmdlets / Get
Get-VMConnectAccess
Gets entries showing users and the virtual machines to which they can connect on one or more Hyper-V hosts. Windows Server PowerShell reference
From the Windows Server PowerShell reference 6 parameters Its page in the reference
Parameters
-CimSessionRuns the cmdlet in a remote session or on a remote computer.-ComputerNameSpecifies one or more Hyper-V hosts that run this cmdlet.-CredentialSpecifies one or more user accounts that have permission to perform this action.-UserName, -UserId, -SidSpecifies the user or users for whom connect access entries are being sought.-VMIdSpecifies the unique identifier of a virtual machine for which connect access entries are being sought.-VMNameSpecifies the name of the virtual machine for which connect access entries are being sought.