How To Distinguish a W365 VM from an AVD from a Hyper-V Programmatically, from Within the VM

I asked this question about 18 months ago on various forums but didn't get an answer.

We need to be able to run scripts on VMs using SCCM and perform different actions dependant on whether the device is an AVD or W365 (or Hyper-V which we use as a test bed).

There does not appear to be anything in WMI that contains this information. I don't know what else might be accessible from a VM for this.

Does anyone know a way to achieve this?

Posted Mar 5, 2026, 11:44 AM UTC

13
Loading comments…