从Powershell v3.0管理Web场 [英] Manage web farms from powershell v3.0

查看:168
本文介绍了从Powershell v3.0管理Web场的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一种创建新Web场的方法,可以使用PowerShell向其添加添加服务器.

I have been searching for a way to create new web farms add add servers to it with PowerShell.

我偶然发现了此链接

I stumbled on this link http://www.iis.net/learn/web-hosting/microsoft-web-farm-framework-20-for-iis-7/web-farm-framework-20-for-iis-cmdlets-for-windows-powershell which says that you should add a snapin called WebFarmSnapin.

但这似乎在Powershell v3.0中根本不起作用,因为它只说:

But this does not seem to work at all in powershell v3.0 because it only says:

Add-PSSnapin:没有为Windows PowerShell版本3注册任何管理单元.

Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 3.

有人知道如何在PowerShell v3.0中管理Web场吗?

Does anyone know how to manage web farms in PowerShell v3.0?

推荐答案

最后,我找到了一种方法!

At last I found a way to do this!

http://brentdacodemonkey.wordpress.com/2014/02/12/automating-arr-configuration/

您可以从IIS管理器中的配置编辑器"中生成脚本.但是有趣的是,在Windows 7计算机上,我无法生成PowerShell脚本.我必须直接在2012服务器上这样做.

You can generate a script from the Configuration Editor in IIS Manager. But the funny thing is that on my Windows 7 machine I could not generate PowerShell scripts. I had to do it directly on the 2012 server.

这篇关于从Powershell v3.0管理Web场的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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