I have several Excel files which I want to update automatically using a PowerShell script. The data in these files is coming from a SQL Server database which is protected by a password.
I have no problem opening the file and then telling it to update all connections, but I have no idea how to enter the password for the SQL Server connection.
To be precise: the password needs to be entered 5 times because there are 5 connected SQL Server views.
Can anyone tell me what I need to do so that PowerShell outputs the password into the prompt?