Scripting Authentication and Access Control Id

Discussion in 'Scripting' started by Paul Bergson [MVP-DS], Feb 24, 2009.

  1. I have several iis 6.0 servers (o/s W2K3) that have an asp file that runs
    under elevated privileges with iis browse to the file - properties / file
    security / authentication and access control. The password of the user id
    this runs under, on this asp file, needs to be changed frequently do to our
    password policy.

    Is anyone aware of a way that I could script the password change on this
    file. It seems like a waste of time to have to manually do this when all of
    our other password changes are automated.
    Paul Bergson [MVP-DS], Feb 24, 2009
    1. Advertisements

  2. Paul Bergson [MVP-DS]

    Ken Schaefer Guest

    Hi Paul,

    Where are you "setting" this password? Are you storing this password as the
    "anonymous IIS user account"? or are you storing this in the ASP webpage
    itself? Or the IIS app pool ID? or where?

    IIS configuration can be programmatically changed via ADSI, WMI and so on.
    If you have hard coded this into the web page itself, then you could write a
    script that does some find/replace somehow and rewrites the file.

    Can you elaborate where you storing the password?

    Ken Schaefer, Mar 2, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.