Get Windows Server 2012 VDI Status via WMI

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…