« Previous Next »

Thread: AppCMD with anonymous Authentication

Last post 10-21-2008 2:29 PM by fbraghetto. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 10-21-2008, 1:05 PM

    • fbraghetto
    • Not Ranked
    • Joined on 10-16-2008, 9:29 AM
    • IT Manager
    • Posts 4

    AppCMD with anonymous Authentication

    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?


     

    ------------
    Fernando Braghetto

    "Vacum ad brejum mobilet"
  • 10-21-2008, 1:50 PM In reply to

    Re: AppCMD with anonymous Authentication

    You probably have locking violation, you can use the /commit:AppHost to do that:

    appcmd.exe set config "www.website.com" -section:system.webServer/security/authentication/anonymousAuthentication /enabled:"True" /userName:"IUSR_website" /password:"p@assword" /commit:apphost

     This script was generated using Configuration Editor:http://blogs.msdn.com/carlosag/archive/2008/03/31/IISAdminPackConfigurationEditor.aspx

  • 10-21-2008, 2:29 PM In reply to

    • fbraghetto
    • Not Ranked
    • Joined on 10-16-2008, 9:29 AM
    • IT Manager
    • Posts 4

    Re: AppCMD with anonymous Authentication

     Thank you CarlosAg,

     It´s working now

     

    ------------
    Fernando Braghetto

    "Vacum ad brejum mobilet"
Page 1 of 1 (3 items)
Microsoft Communities