none
Update IIS Applicationhost.Config file via Powershell Webadministration Commands RRS feed

  • Question

  • Hi Team,

    I am trying to edit the IIS Applicationhost.Config file.We are trying to modify below three Values.

    For Access OverrideModeDefault = Allow

    For AnonymusAuthentication  OverrideModeDefault = Allow

    For WindowsAuthentication OverrideModeDefault = Allow

    To do that i used below Powershell command

    Import-Module "WebAdministration"
    Set-WebConfigurationProperty -PSPath IIS:\ -Filter '/ConfigSections/Sectiongroup{@name="system.webServer"}/SectionGorup{@name="Security"}'  -Value @{name="access";overrideModeDefaul="Allow"} -Force

    But it throw a error

    How to achieve this using 

    Set-WebConfigurationProperty



    Sunish Surendran.k

    • Moved by Bill_Stewart Monday, April 30, 2018 9:38 PM This is not "fix/debug/rewrite my script for me" forum
    Wednesday, February 28, 2018 11:53 AM