How many VDIs are connected in my environment

Posted on 2012-08-23
Last Modified: 2012-08-24
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.
Question by:xmouser
    1 Comment
    LVL 16

    Accepted Solution

    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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
    Set OWA language and time zone in Exchange for individuals, all users or per database.
    Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
    Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now