70-332 · Question #130
You are the administrator of your company's SharePoint environment. The company plans to use Excel Services. A file share is designed to contain all the files that are used by Excel Services. You…
The correct answer is B. Use the New-SPExcelDataConnectionLibrary Windows PowerShell cmdlet. To register a file share as a trusted data connection library for Excel Services, the New-SPExcelDataConnectionLibrary PowerShell cmdlet is used to create the new entry.
Question
Options
- AAdd a user-defined function assembly on the Manage Excel Services Application page.
- BUse the New-SPExcelDataConnectionLibrary Windows PowerShell cmdlet.
- CAdd a trusted file location on the Manage Excel Services Application page.
- DUse the Set-SPExcelDataConnectionLibrary Windows PowerShell cmdlet.
How the community answered
(23 responses)- B91% (21)
- C4% (1)
- D4% (1)
Why each option
To register a file share as a trusted data connection library for Excel Services, the New-SPExcelDataConnectionLibrary PowerShell cmdlet is used to create the new entry.
Adding a user-defined function assembly registers a custom calculation DLL for use in workbooks, not a file share path for data connections.
The New-SPExcelDataConnectionLibrary cmdlet creates a new trusted data connection library entry in Excel Services, allowing a UNC file share path to be registered so Excel Services can locate and access ODC/UDC data connection files stored there. This is the correct PowerShell approach for adding a file share as a trusted data connection source in Excel Services. Without this registration, Excel Services will not know to look at that file share for connection data.
Adding a trusted file location configures where Excel workbooks themselves are trusted to load from, not where data connection files stored on a file share are registered.
Set-SPExcelDataConnectionLibrary modifies properties of an already-existing data connection library entry rather than creating a new one for a new file share.
Concept tested: Registering Excel Services trusted data connection library via PowerShell
Source: https://learn.microsoft.com/en-us/powershell/module/sharepoint-server/new-spexceldataconnectionlibrary
Topics
Community Discussion
No community discussion yet for this question.