Hello,
Our server have more than one Site.
Due Security reasons, the public part of the website need an special security, and the "Anonymous Access" is done with different username for each website.... this prevent one asp developer to write in another´s developer area.
Using the IIS Management tool is fairly simple...
Sites > "Name of Website" > authentication > Anonymous Authentication > Edit...
Specific User > Button Define > Put the new user name and password and OK.
However, I´m planning to create an script for this using APPCMD.
I´ve tried the following command, With errors.
%windir%\system32\inetsrv\AppCmd set config "www.website.com" -section:anonymousAuthentication -userName:IUSR_website -password:p@ssword
But didn´t work.
Can anyone help with this?