For some reason I'm having a brutal time parsing the connection string in the web.config file.
I've already gotten connectionString but I'm trying to get all the values such as the
- Data Source
- Initial Catalog
- Username
- etc...
The connection string looks like:
Data Source=db.sample.com;user id=sample-user;password=sample-password;Initial Catalog=sample-catalog;
;, then loop through the results and split by=to get your key/value pairs. I'd put this as an answer but I don't know a) if Powershell has a split function, and b) what it's called.