简体   繁体   中英

List installed server roles on a Windows 2003 server

In Windows 2008 and 2012 I can use WMI ( "Select * From Win32_ServerFeature" ) in an assembly to get the roles, role services and features. This doesn't work for Windows 2003.

Is there a way to get a list of the installed roles from Windows 2003?

I think you can find the information you need in sysoc.inf (the existing configuration file), located in %systemroot%\\inf . This is the file used by the optional component manager of Windows Server 2003 ( SYSOCMGR.EXE ) that you can find in the %systemroot%\\system32 folder. Also see the post here giving some information on SYSOCMGR.EXE and its core dll ( ocmanage.dll ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM