如何从命令提示符设置IIS网站的默认文档?

时间:2012-07-27 08:34:37

标签: iis web

我想从命令提示符为IIS网站设置默认文档。

我可以知道如何设置它..

谢谢, 马赫什

1 个答案:

答案 0 :(得分:1)

您可以使用appcmd.exe:

 appcmd set config /section:defaultDocument /enabled:true|false

Check appcmd help at MSDN (or here) for more information.

http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe