如何以编程方式启用Web服务器(IIS)功能 [英] How to programmatically enable Web Server (IIS) features

查看:122
本文介绍了如何以编程方式启用Web服务器(IIS)功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 2008 Server中,要启用Web服务器(IIS)功能,需要添加角色。有没有办法以编程方式执行此操作。


是否有一个cmdlet来执行此操作。如果是这样,启用管理服务或"IIS管理脚本和工具"的示例是什么


不清楚应该在哪个论坛发布此消息。

解决方案

嗨Rickey,


据我所知,您可以使用PowerShell执行此操作,请检查以下两个主题帮助。


http://forums.iis.net/t/1169587.aspx


http://stackoverflow.com/questions/1608506/powershell-script-to-enable-iis-management-scripts-and-tools


这是Windows窗体论坛讨论
WinForm
技术。如果您对此问题有任何疑问,我建议您在
IIS论坛中创建一个新主题。


如果您对PowerShell有任何疑问,可以通过 $获取帮助b $ b Windows Server PowerShell论坛


很抱歉给您带来不便。


最好的问候,


In Windows 2008 Server, to enable Web Server (IIS) features, you need to add roles. is there any way to do this programmatically.

Is there a cmdlet to do this. If so, what is an example to enable Management Service or 'IIS Management Scripts and Tools'

Its not clear what forum this message should be posted in.

解决方案

Hi Rickey,

According to my knowledge, you can do this by using PowerShell, please check if the following two threads help.

http://forums.iis.net/t/1169587.aspx

http://stackoverflow.com/questions/1608506/powershell-script-to-enable-iis-management-scripts-and-tools

This is Windows Forms forum which discuss WinForm technology. If you have any doubt on this issue, I suggest you create a new thread in the IIS Forum.

If you have any question about PowerShell, you can get help in the Windows Server PowerShell Forum.

Sorry for any inconvenience this may cause.

Best Regards,


这篇关于如何以编程方式启用Web服务器(IIS)功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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