How many VDIs are connected in my environment

I need a PowerCLI to that tells me how many VDIs are connected in my environment at a particular time of day.

I just need an output of the number if possible nothing more than that.
xmouserAsked:
Who is Participating?
 
LearnctxEngineerCommented:
You could probably achieve this with XenDesktop cmdlets. You would need to install the XenDesktop SDK.

Add-PSSnapin "XdCommands"
Get-XDSession | Where-Object {$_.State -eq "Connected"} | Measure-Object | Select -Expand Count

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.