无法使用PowerShell创建新的Web应用程序-NTLM- [英] unable to create a new web appln - NTLM- using PowerShell

查看:90
本文介绍了无法使用PowerShell创建新的Web应用程序-NTLM-的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

am尝试使用以下代码从Powershell创建Web应用程序:

am trying to create a web app from powershell, using the below code:

但是会抛出很多错误,导致找不到liek port.

but it throws many errors liek port not found.

推荐答案

在您的脚本中,有多个在

In your script, there is more than one " in 


appPoolName中,应为:
appPoolName, it should be :


appPoolName =" npdqaapppool_2233"
appPoolName = "npdqaapppool_2233"

对于端口,您需要在URL或端口参数"中指定一个端口,而不是在两个地方都指定.

And for the port, you need to either specify a port in the URL or in the Port Parameter, not in both places.

因此,对于New-SPWebApplication,您可以使用以下内容:

So, for the New-SPWebApplication, you can use the followings:

New-SPWebApplication -Name


这篇关于无法使用PowerShell创建新的Web应用程序-NTLM-的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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