Setting up default domain and realm for basic authentication in iis 7.5

I am using below power shell script to enable basic authentication for my site

Set-WebConfigurationProperty -filter “/system.webServer/security/authentication/BasicAuthentication” -name enabled -value $enableBasicAuthentication -PSPath $appPath

I also need to set the default domain and realm for basic authentication.

Could you pleas let me know how can i do that?


Thanks for reaching out! there’s no built-in way to do that from Octopus (as you’ve probably figured out cause you are already scripting this). This link seems to show how to do all these things:

Disclaimer: Haven’t tested this myself

Hope that helps!