Use the command line to configure windows Integrated Identity Authentication (NTLM)
IIS supports three authentication modes: Anonymous, basic, and integrated Windows authentication. When using form authentication, we usually configure the website to allow anonymous access. The default anonymous account is IUSR_machinename, machinename is the NetBIOS Name of the Computer specified during installation. Integrated Windows authentication is most suitable for the Intranet environment, and most of our SharePoint sites are under the Intranet. The following describes how to configure windows Integrated Identity Authentication (NTLM) through the console ).
First, check whether the site has been verified by NTLM.
Run the following command in command mode:
C: \ Inetpub \ adminscripts> cscript adsutil. vbs get w3svc/<website ID>/root/ntauthenticationproviders
<Website ID> can be found in IIS manager.
If NTLM verification is not configured, the following results are obtained:
The parameter "ntauthenticationproviders" is not set at this node.
Step 2: Configure NTLM verification for the site.
In the command, run
C: \ Inetpub \ adminscripts> cscript adsutil. vbssetw3svc/<websiteid>/root/
Ntauthenticationproviders NTLM
With this command, we can set our site to the NTLM authentication method.
The above script is in the IIS path, c: \ Inetpub \ adminscripts. If you are interested, you can study it yourself.