IIS 7 and Above
RELIABLE iterative search-and-update of password for service account...
Re: RELIABLE iterative search-and-update of password for service acco...
Aug 28, 2019 09:17 AM|tmsatgmail|LINK
A solution block here demonstrates (in part) what I need to do:
The limitations are:
1. There may be some sites, sub-sites, apps, FTP servers, virtual directories and subfolders where we MUSTN'T attempt to update credentials - so a "fire and forget" Set-WebConfigurationProperty needs to be extended with a sanity check. Only if the current
USERNAME matches the username in our updated psCredential, should we call Set-WebConfigurationProperty.
2. I'd need a lot more error handling. One of the issues I'm encountering on one test server is very similar to what's described here: https://social.technet.microsoft.com/Forums/office/en-US/c2200b26-ca8c-425f-9387-de301da57c57/iis-remoting-the-data-is-invalid?forum=winserverpowershell