I am running this command to set credentials for a couple of iis applications.
Set-WebConfiguration "/system.applicationHost/sites/site[@name='Default Web Site']/application[@path='/Webapp']/virtualdirectory[@path='/']" -Value @{userName=$user;password=$password}
I need to update the password for over 15 apps with the same username? How can I use 'Get-Webconfiguration" (or any other method) to search for all application paths that uses userName=$user
?