We are using Excel 2010 into our office to produce some reports. We are using powerpivot plug in to connect to SSAS cube. The only problem is when, it is using windows authentication and I want to use SQL Server Service Account instead of windows account. I went to advance connection and tried to type my user id and password but it is greyed out?
Any help would be really appreciated.
I am using this powershell script which opens the Excel file and refresh it.
``1. Dir "C:\Users\New folder" -Recurse | % {
$ExcelObject = New-Object -ComObject Excel.Application
$ExcelObject.Visible = $false
$ExcelObject.DisplayAlerts = $false
$WorkBook = $ExcelObject.Workbooks.OpenXML($_.FullName)
$WorkBook.RefreshAll()
$WorkBook.Save()
$WorkBook.Close()
$ExcelObject.Quit()
}