如何使用C#.NET安装Windows Server角色 [英] How to get installed Windows Server Roles using C# .NET
问题描述
您好,
如何使用C#.NET安装Windows Server角色。
How to get installed Windows Server Roles using C# .NET.
我想检查每个远程到a服务器上安装了哪些角色。我怎么能用c#做到这一点?
I want to check per remote to a server which roles are installed on this. How can I do that using c# ?
谢谢
推荐答案
您可以使用Win32_ServerFeature WMI类找到此信息。
Hi,
You can find this information using the Win32_ServerFeature WMI class.
...微软如何愚弄短语"角色"让人感到困惑。和"特征"但是角色,角色服务和功能可以在这个课程中找到
... it's confusing how Microsoft fuddle the phrases "Role" and "Feature" however roles, role services and features can be found in this class
http://msdn.microsoft.com/en-us/library/windows/desktop/cc280268(v = vs.85)的.aspx
您可以使用ParentID属性找到哪些角色服务属于哪些角色。
You can find which Role Services belong to which Roles by using the ParentID property.
此信息由我们的代理商
http://www.centrel-solutions .com / XIAConfiguration / capabilities.aspx?capability = WindowsMachine
问候,
David
这篇关于如何使用C#.NET安装Windows Server角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!