[英]Detecting what Server Roles are installed on Windows Server 2012
[英]List installed server roles on a Windows 2003 server
在Windows 2008和2012中,我可以在程序集中使用WMI( "Select * From Win32_ServerFeature"
)來獲取角色,角色服務和功能。 這不適用於Windows 2003。
有沒有辦法從Windows 2003獲取已安裝角色的列表?
我認為您可以在sysoc.inf
(現有配置文件)中找到所需的信息,該文件位於%systemroot%\\inf
。 這是Windows Server 2003的可選組件管理器( SYSOCMGR.EXE
)使用的文件,您可以在%systemroot%\\system32
文件夾中找到該文件。 另請參閱此處提供有關SYSOCMGR.EXE及其核心dll( ocmanage.dll
)的信息的文章。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.