I would like to publish a powershell command to return a connection string to me (in particular, I'm looking for a db name value) for all websites on a web server ...
So, I would like to see something like
site1 dbname = Northwind
site2 dbname = Fitch
site3 dbname = DemoDB
I tried using the IIS Powershell snap-in ... I thought I was close with this:
PS C: \ Windows \ system32> Get-WebApplication | Get-WebConfiguration -filter / connectionStrings / *
but ... after looking at the results ... my answer seems not to be there
I am very new to powershell - so excuse my ignorance and inexperience
Any help appreciated!
thanks!
source share