I am getting an error when I try to clear or set the IIS physical path credentials in Powershell 3 using the WebAdministration module. I want to be able to make the changes at the application level so I don’t interfere with other applications or sites on the server. Specifying a PSPath and location doesn’t seem to do anything.
I assume I have to unlock the section, but the closest section I can find is Sites, and that is too coarse. I would appreciate the assistance if anybody knows exactly what to do in Powershell to manage the IIS physical path credentials (and all application-related settings) at the application level? I was looking for a command to create a location tag for my application, and then be able to specify that location tag for all my subsequent setting changes - but no joy.
Cheers