How to enter a password automatically when updating SQL data in an Excel file using powershell?

时间:2018-08-22 14:00:32

标签: sql-server excel powershell password-protection

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?

0 个答案:

没有答案