For one of my projects, I need a way to query which features/roles/role services are installed on a given Windows Server machine.
In it's grand tradition, Microsoft keeps reinventing stuff (sysocmgr
in Windows 2003, pkgmgr
and ocsetup
in Windows 2008, dism
in Windows 2012), making it hard to write OS-independent code.
I know for sure that there is an official native API for DISM (and a managed wrapper). Is there something for Windows 2003 and 2008?