Scenario/Problem: You need to obtain a specific safe data provider reference.
Solution: Use the Get-SPVisioSafeDataProvider
cmdlet.
The Get-SPVisioSafeDataProvider
cmdlet can be used to retrieve a specific safe data provider using the VisioServiceApplication
and data provider parameters, as shown in Listing 24.4.
$dataProvider =
Get-SPVisioSafeDataProvider -VisioServiceApplication "Visio Graphics
Service" -DataProviderID "Custom DB" -DataProviderType 6
This cmdlet uses both the DataProviderID
and the DataProviderType
to identify the safe data provider. If one is excluded, no results are returned.
3.147.67.166