• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 762
  • Last Modified:

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.
0
xmouser
Asked:
xmouser
1 Solution
 
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

Featured Post

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now