Pull SessionHostName in WVD Spring 2020

%3CLINGO-SUB%20id%3D%22lingo-sub-2072048%22%20slang%3D%22en-US%22%3EPull%20SessionHostName%20in%20WVD%20Spring%202020%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2072048%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20trying%20to%20find%20a%20way%20to%20just%20pull%20the%20SessionHostName%20using%20the%20new%20cmdlet%20for%20WVD%20Spring%202020.%20Found%20here%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Faz.desktopvirtualization%2Fget-azwvdusersession%3Fview%3Dazps-5.3.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Faz.desktopvirtualization%2Fget-azwvdusersession%3Fview%3Dazps-5.3.0%3C%2FA%3E.%20I'm%20not%20very%20familiar%20with%20hash%20tables%20that%20are%20mentioned%20at%20the%20end%20of%20that%20link%20so%20I'm%20not%20sure%20if%20that%20is%20what%20I%20need%3F%20I%20used%20to%20be%20able%20to%20get%20this%20information%20in%20the%20Fall%202019%20version%20of%20WVD%2C%20specifically%20found%20here%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsvirtualdesktop%2FGet-RdsSessionHost%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsvirtualdesktop%2FGet-RdsSessionHost%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERight%20now%20all%20I%20am%20able%20to%20get%20when%20pulling%20the%20Name%20is%20what%20they%20show%20in%20the%20example.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSPAN%3EHostPoolName%2FSessionHostName%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20with%20better%20powershell%20skills%20able%20to%20tell%20me%20how%20one%20can%20just%20pull%20the%20SessionHostName%3F%20Is%20it%20possible%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Visitor

Hi all,

 

I've been trying to find a way to just pull the SessionHostName using the new cmdlet for WVD Spring 2020. Found here https://docs.microsoft.com/en-us/powershell/module/az.desktopvirtualization/get-azwvdusersession?vie.... I'm not very familiar with hash tables that are mentioned at the end of that link so I'm not sure if that is what I need? I used to be able to get this information in the Fall 2019 version of WVD, specifically found here https://docs.microsoft.com/en-us/powershell/module/windowsvirtualdesktop/Get-RdsSessionHost.

 

Right now all I am able to get when pulling the Name is what they show in the example.

 

HostPoolName/SessionHostName

 

Anyone with better powershell skills able to tell me how one can just pull the SessionHostName? Is it possible?

0 Replies