Update saved password for basic authentication using a script

Posted by Kalamane on Server Fault See other posts from Server Fault or by Kalamane
Published on 2012-03-20T16:12:38Z Indexed on 2012/03/20 17:31 UTC
Read the original article Hit count: 230

I have a website that uses basic authentication as described on this webpage. Each of the computers I manage have the password saved in their browser.

There is only one username and password for this. After someone logs in to the site this way, they are presented with their individual username and password prompt as part of the web page. The purpose of the initial username/password is to discourage non-technical employees that aren't supposed to be using the page from even viewing it.

So far, when we've had to change this password, I've manually gone to each computer and updated the saved password.

I'm writing a startup script to configure other aspects of these systems so that I can maintain them easier. I'd like to be able to update the saved password via this script.

The operating system running on these machines is Windows XP SP3 and the browsers they're using to access this site are IE8 and IE9.

How can I update the saved basic authentication information for a website via a script?

© Server Fault or respective owner

Related posts about Windows

Related posts about scripting