开发者

Web deploy 2.0 can't enable Windows Authentication?

Before i write a powershell script to enable Windows Authentication, I just want to make sure web deploy cannot already do this. Can someone confirm this?

Overview of we开发者_如何学运维b deploy: http://learn.iis.net/page.aspx/426/overview-of-web-deploy/


For Web Deploy, Windows authentication has to be preinstalled separately on the server (see the requirements and limitations page for Web Deploy).

A typical scenario in a Web Deploy deployment operation would be that the source server has Windows auth installed but the destination server does not. In this case, Web Deploy cannot install Windows auth for you on the destination server. If the server is Windows Server 2008 (running IIS 7), you would have to install the Windows authentication role service first.

Having said that, here is one option you might look into: if you do write a script to install the Windows authentication role service, you could run that script by using the preSync switch on the Web Deploy command line. The preSync switch lets you specify a command or batch file to run on the destination before the main Web Deploy synchronization operation begins. For more information, see the preSync entry on the Web Deploy Operation Settings page and the related information on the Web Deploy runCommand Provider page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜