I have a number of excel reports that connect to a sql server data source. I am trying to automate the deployment of these excel files. This sticking block is that the connection the excel file uses differs between deployments.
Is it possible to edit the workbook connection string property using powershell?
The below code gives me access to the workbook connections but I don't seem to be able to edit the connections. I am not able to access the connection through the item method as i can't figure out the indexer. If I could I could maybe delete the connection but I don't seem to be able to edit it. I have used MSDN to get an ideal about the objects and on the whole they seem to be returning read only objects.