Manage web farms from powershell v3.0

。_饼干妹妹 提交于 2019-12-10 22:27:47

问题


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.

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

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

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


回答1:


At last I found a way to do this!

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

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.



来源:https://stackoverflow.com/questions/25289310/manage-web-farms-from-powershell-v3-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!