如何导出使用PowerShell和Web管理提供IIS7网站和应用程序池的设置? [英] How do I export IIS7 site and app pool settings using Powershell and the Web Administration Provider?

查看:278
本文介绍了如何导出使用PowerShell和Web管理提供IIS7网站和应用程序池的设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想导出的站点设置和应用程序池的设置中使用PowerShell这样我就可以在另一台服务器上恢复它们​​在IIS7特定网站。任何人都知道如何做到这一点?

I would like to export the site settings and app pool settings for a specific site in IIS7 using Powershell so i can restore them on another server. Anyone knows how to do this?

推荐答案

我会用网络部署(http://www.iis.net/download/WebDeploy)来代替,并且因为它有一个命令行,你可以只使用从PowerShell的。你可以选择使用它来管理code,可从PowerShell中使用的API,但它应该是一个更容易只是外壳进入命令行模式。

I would use Web Deploy (http://www.iis.net/download/WebDeploy) instead, and since it has a command line you can just use that from PowerShell. You could alternatively use the APIs which are managed code and can be used from PowerShell, but it should be a lot easier to just shell into the command line.

这篇关于如何导出使用PowerShell和Web管理提供IIS7网站和应用程序池的设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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