如何使用C#.NET安装Windows Server角色 [英] How to get installed Windows Server Roles using C# .NET

查看:52
本文介绍了如何使用C#.NET安装Windows Server角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

如何使用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

审核Windows Server角色和功能


这篇关于如何使用C#.NET安装Windows Server角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆