Get Windows Server 2012 VDI Status via WMI

Welcome Forums General PowerShell Q&A Get Windows Server 2012 VDI Status via WMI

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 7 years ago.

  • Author
  • #6457

    Points: 0
    Rank: Member

    by trondhindenes at 2013-04-10 10:52:22

    I need to create a custom dashboard for displaying VDI connection info based on the VDI solution in Windows Server 2012. I'm pretty much trying to programatically access this information:
    a user uploaded image

    I'm guessing since Server Manager can do it it's somewhere in CIM/WMI. I've dabbled around in the various rdms namespaces, and I can get to the VM State (Off/Saved/running) but not the connection state:
    $NameSpace = "Root\CIMV2\rdms"
    $ClassName = "Win32_RDMSVirtualDesktop"

    $VDI = Get-CimInstance -ClassName $classname -Namespace $NameSpace

    I realize this is a longshot, but I thought I'd ask if anyone knew anything about a class I can look into.


    by DonJ at 2013-04-11 22:41:38

    Server Manager doesn't rely entirely on WMI/CIM. It may well be using an internal API to build that display. Every little Server Manager add-in can do whatever it wants...

The topic ‘Get Windows Server 2012 VDI Status via WMI’ is closed to new replies.