我在IIS中具有以下结构。在IIS中的应用程序级别设置NTAuthenticationProviders 6
Internet Information Services
(local computer)
Web Sites
Default Web Site
MyApplication
MyApplication
是IIS中的一个应用程序。
集成Windows身份验证未在Default Web Site
上设置。 但是我想在MyApplication
上设置集成Windows身份验证。 (它是一个内联网应用程序)。
这可以通过GUI完成:右键点击Default Web Site
并选择Properties
。选择Directory Security
选项卡,然后在匿名访问和身份验证控件上单击Edit
。
我想将其包含在设置脚本中。我有其他的设置命令,使用adsutil.vbs
,但我努力设置集成Windows身份验证。
运行:
CSCRIPT // NOLOGO C:\的Inetpub \ AdminScripts \ ADSUTIL.VBS GET/SVC/1 /的NTAuthenticationProviders
返回
NTAuthenticationProviders : (STRING) "NTLM"
然而,我预计能够运行
CSCRIPT // NOLOGO C:\的Inetpub \ AdminScripts \ adsutil.vbs获取/ W3SVC/1/ROOT/MyApplication的/的NTAuthenticationProviders
但这返回
Error Trying To GET the property: (Get Method Failed)
NTAuthenticationProviders (This property is probably not allowed at this node)
是没可能设置NTAuthenticationProviders
元数据库申请级别的财产?
棒极了!谢谢! – Paul
顺便说一句你对IISRESET是正确的。 – Paul