Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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)

share|improve this question
    
What version of IIS (or Windows Server) & PowerShell are you using? –  Robert MacLean Sep 22 '09 at 14:09
    
Windows Server 2003, and PowerShell 1.0 file version 6.0.5430.0 –  Philippe Monnet Sep 22 '09 at 22:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.