Get-RdsSessionHost

Rising Flight 4,536 Reputation points
2021-06-06T19:26:25.103+00:00

Hi All

We are using WVD classic and i am new to it and learning, When i use the below syntax i get all the session hostnames for the entire Pool MyPool

Get-RdsSessionHost -TenantName "MyTenant" -HostPoolName "MyPool"

SessionHostName : abc1.contoso.com
TenantName : MyTenant
TenantGroupName : mygroup
HostPoolName : MyPool
AllowNewSession : True
AzureVmId : 111111111111111
AzureResourceId : /subscriptions/xyz
Sessions : 0
LastHeartBeat : 2/4/2021 4:11:43 AM
AgentVersion : 1.0.2800.1300
AssignedUser : user1@Company portal .com
OsVersion : 10.0.17763
SxSStackVersion : 123
Status : Available
UpdateState : Succeeded
LastUpdateTime : 2/4/2021 3:42:44 AM
UpdateErrorMessage :
Item

i have a user by name user2@Company portal .com i want get the above information for this single user experts help me with the syntax.

when i use the below syntax i don't get Session Host Name, is it that wvd is provisioned but the user never logged in to the wvd?

Get-RdsAppGroupUser -TenantName "MyTenant" -HostPoolName MyPool -AppGroupName "mygroup" -UserprincipalName user2@Company portal .com

UserPrincipalName : user2@Company portal .com
TenantName : MyTenant
TenantGroupName : mygroup
HostPoolName : mypool
AppGroupName : myappgroup

For one of my user3@Company portal .com, WVD is provisioned and how can i know who has provisioned it.

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,544 questions
{count} votes

Accepted answer
  1. prmanhas-MSFT 17,901 Reputation points Microsoft Employee
    2021-06-07T09:03:22.91+00:00

    @Rising Flight Can we update the module once using below command :

    Update-Module -Name Microsoft.RDInfra.RDPowerShell

    and then import followed by connection and then fetch ?

    Import-Module -Name Microsoft.RDInfra.RDPowerShell

    Let me know what results you get after running the above commands and your script.

    Thanks

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Rising Flight 4,536 Reputation points
    2021-07-18T08:57:18.223+00:00

    i dont see the option to mark as answer


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.