Get a Specific Safe Data Provider

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.

Listing 24.4. Assigning a Variable to a Specific Data Provider

$dataProvider =Get-SPVisioSafeDataProvider -VisioServiceApplication "Visio GraphicsService" -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.

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.