1. 配置托管服务账户
Set-SPVisioExternalData -VisioServiceApplication "Visio Graphics Service" –UnattendedServiceAccountApplicationID "SSS Visio Graphics"
2. 创建安全数据提供程序
New-SPVisioSafeDataProvider -VisioServiceApplication "Visio Graphics Service" –DataProviderID "Custom DB" –DataProviderType 6
3. 显示所有安全数据提供程序
Get-SPVisioSafeDataProvider –VisioServiceApplication "Visio Graphics Service"
4. 获取指定的安全数据提供程序
$dataProvider = Get-SPVisioSafeDataProvider –VisioServiceApplication "Visio Graphics Service" –DataProviderID "Custom DB" –DataProviderType 6
5. 移除一个安全数据提供程序
Remove-SPVisioSafeDataProvider –VisioServiceApplication "Visio Graphics Service" –DataProviderID "Custom DB" –DataProviderType 6
6. 设置数据提供程序的描述
Set-SPVisioSafeDataProvider –VisioServiceApplication "Visio Graphics Service" –DataProviderID "Custom DB" –DataProviderType 6 –Description "Custom DB Provider"
7. 配置Visio性能参数
Set-SPVisioPerformance –VisioServiceApplication "Visio Graphics Service" –MaxDiagramCacheAge 30 -MaxDiagramSize 5 -MaxRecalcDuration 60 -MinDiagramCacheAge 10
–MaxDiagramCacheAge:图形缓存的最大分钟数,默认为60分钟,可用值为0-34560(24天)
–MaxDiagramSize:Visio Graphics服务可处理Visio图形的最大MB数,默认为5,可用值为1-50
–MaxRecalcDuration:Visio Graphics服务重算图形的最大秒数,默认为60秒,可用值为1-120,超出这个值将超时
–MinDiagramCacheAge:图形缓存的最小分钟数,较长时间的缓存可降低内存和CPU的消耗。默认值为5分钟,可用值为0-34560(24天)