我正在尝试通过创建所需的虚拟目录并在批处理文件中设置其所有设置来自动化我的 ASP.NET 应用程序的一些构建过程。到目前为止,我已经能够弄清楚如何创建虚拟目录,但是除此之外如何配置它们呢?
例如,我需要能够将它们设置为应用程序、设置默认文档、更改框架版本、打开集成身份验证等。有谁知道有任何脚本可以在没有第三方实用程序的情况下完成所有这些操作? adsutil.vbs 管理脚本是否执行此操作?
I am trying to automate some of the build process for my asp.net apps by creating the virtual directories it needs and setting all their settings in a batch file. So far I have been able to figure out how to create virtual directories, but how to do you configure them beyond that?
For example I need to be able to set them as an application, set the default document, change framework version, turn on integrated authentication, etc. Does anyone know of any scripts that can do all this without a third party utility? Does the adsutil.vbs admin script do any of this?
发布评论
评论(2)
谢谢,该文档很有帮助。我想发布我最终得到的脚本。它生成虚拟目录、设置访问设置、使其成为应用程序、设置其隔离级别、设置默认文档、设置身份验证,甚至设置框架版本。这是我一直在寻找的一切。它通过 IIS5 附带的管理脚本完成这一切。
Thanks, that documentation helped a lot. I wanted to post the script I ended up with. It generates the virtual directory, sets access settings, makes it an application, sets its isoloation level, sets default document, sets authentication, and even sets the framework version. Its everything I have been looking for. It does it all with the admin scripts that come with IIS5.
查看 http://msdn.microsoft.com/ en-us/library/ms524830%28VS.90%29.aspx 和 http://msdn.microsoft.com/en-us/library/ms524579%28VS.90%29.aspx。
Look at http://msdn.microsoft.com/en-us/library/ms524830%28VS.90%29.aspx and http://msdn.microsoft.com/en-us/library/ms524579%28VS.90%29.aspx.