Get Windows Server 2012 VDI Status via WMI

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

  • Author
    Posts
  • #6457

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

    Hi,
    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.

    regards,
    Trond

    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...

You must be logged in to reply to this topic.