如何导出使用PowerShell和Web管理提供IIS7网站和应用程序池的设置?应用程序、网站、PowerShell、Web

由网友(一叶十三刺)分享简介:我想导出的站点设置和应用程序池的设置中使用PowerShell这样我就可以在另一台服务器上恢复它们​​在IIS7特定网站。任何人都知道如何做到这一点?I would like to export the site settings and app pool settings for a specific site i...

我想导出的站点设置和应用程序池的设置中使用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.

阅读全文

相关推荐

最新文章