Nihar,

Is there a function in WMI that will allow me to install the Hyper-V role without going through the Server Manager or servermanagercmd?

I know Win32_ServerFeature lets you query installed roles.

Thanks,
Abheeshta