Script to change an IIS web site authentication method

Posted on 2007-10-14
Last Modified: 2008-09-17
Can someone provide a sample script that can be run by a windows scheduled task that will change the authentication method of an IIS 6.0/7.0 web site from digest authentication to windows authentication (and then back again at a later time)?
Question by:RadRichie
    LVL 12

    Accepted Solution

    You can make a directory that is only accessible by an authenticated user and direct the user there when you want them to use IWA and one that is a digest authentication.. your landing page will direct the user to whichever you need behind the scenes.
    Landing.aspx directs to
    /IWA/login.aspx --(don't allow anonymous users to access this page in IIS)
    LVL 1

    Author Comment

    Good idea, but I was looking to do this using a WMI ?? command in a scripting tool, without re-configuring or duplicating the site at all.  My site doesn't have a login page.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Android App Development

    This course will involve creating widgets, customize list view, grid view, spinners, etc. Creating applications using audio, video, and SQLite database. Ending with publication on Google Play.

    Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
    Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
    This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
    Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now