Is there Powershell way to re-apply a restored password for the IIS IUSR account?

Posted by Philippe Monnet on Server Fault See other posts from Server Fault or by Philippe Monnet
Published on 2009-09-22T11:28:14Z Indexed on 2010/04/13 19:03 UTC
Read the original article Hit count: 368

Filed under:
|
|

On one of our IIS web servers the IUSR account suddenly expired or got corrupted, I recovered the password from the IIS metabase (using Cscript adsutil.vbs get w3svc\anonymoususerpass after switching IsSecureProperty = False).
I then reset the password accordingly. Now I have to re-key that password on the Directory Security tab of all virtual directories (for the anonymous account) of all web sites on that server.

Is there a way to automate this using Powershell? (I have searched so far in vain)

© Server Fault or respective owner

Related posts about powershell

Related posts about iis