SharePoint Excel Service-PowerShell
1. 创建一个信任的文件路径
New-SPExcelFileLocation -Address "http://sp2010/Excel Workbooks"
-ExcelServiceApplication "Excel Services Application"
–LocationType SharePoint -IncludeChildren
2. 显示所有信任的文件路径
Get-SPExcelFileLocation
–ExcelServiceApplication "Excel Services Application"
3. 获取指定信任的文件路径
$trustedLocation = Get-SPExcelFileLocation
-Identity "http://sp2010/Excel Workbooks"
–ExcelServiceApplication "Excel Services Application"
4. 移除一个信任的文件路径
$trustedLocation = Get-SPExcelFileLocation -Identity "http://sp2010/Excel Workbooks" –ExcelServiceApplication "Excel Services Application"
Remove-SPExcelFileLocation $trustedLocation
–ExcelServiceApplication "Excel Service Application"
5. 创建一个信任的数据连接库
New-SPExcelDataConnectionLibrary
-Address "http://sp2010/Data Connections"
-ExcelServiceApplication "Excel Services Application"
6. 显示所有信任的数据连接库
Get-SPExcelDataConnectionLibrary
–ExcelServiceApplication "Excel Services Application"
7. 获取指定信任的数据连接库
$trustedLibrary = Get-SPExcelDataConnectionLibrary
-Identity "http://sp2010/Data Connections"
–ExcelServiceApplication "Excel Services Application"
8. 移除一个信任的数据连接库
$trustedLibrary = Get-SPExcelDataConnectionLibrary
-Identity "http://sp2010/Data Connections"
–ExcelServiceApplication "Excel Services Application"
Remove-SPExcelDataConnectionLibrary $trustedLibrary
–ExcelServiceApplication "Excel Service Application"
9. 创建一个安全数据提供程序
New-SPExcelDataProvider
-ExcelServiceApplication "Excel Services Application"
–ProviderID "Custom DB" –ProviderType ODBC
10. 显示所有安全数据提供程序
Get-SPExcelDataProvider
–ExcelServiceApplication "Excel Services Application"
11. 获取指定的安全数据提供程序
$dataProvider = Get-SPExcelServiceApplication
-Identity "Excel Services Application" | Get-SPExcelDataProvider
| where {$_.ProviderID -eq "Custom DB"}
12. 移除一个安全数据提供程序
$dataProvider = Get-SPExcelServiceApplication
-Identity "Excel Services Application" | Get-SPExcelDataProvider
| where {$_.ProviderID -eq "Custom DB"}
Remove-SPExcelDataProvider $dataProvider
13. 添加一个阻止的文件类型
New-SPExcelBlockedFileType
-ExcelServiceApplication "Excel Services Application" –FileType XLSB
14. 显示所有阻止的文件类型
Get-SPExcelBlockedFileType
–ExcelServiceApplication "Excel Services Application"
15. 获取指定阻止的文件类型
$blockedFileType = Get-SPExcelBlockedFileType
-Identity "XLSB" –ExcelServiceApplication "Excel Services Application"
16. 移除一个阻止的文件类型
$blockedFileType = Get-SPExcelBlockedFileType -Identity "XLSB"
–ExcelServiceApplication "Excel Services Application"
Remove-SPExcelBlockedFileType $blockedFileType
–ExcelServiceApplication "Excel Service Application"
17. 创建一个用户定义函数引用
New-SPExcelUserDefinedFunction -ExcelServiceApplication "Excel Services Application" –Assembly "MyCompany.ExcelServices.UDF,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=82e6dce111e9429c"
–AssemblyLocation GAC
18. 显示所有用户定义函数引用
Get-SPExcelUserDefinedFunction
–ExcelServiceApplication "Excel Services Application"
19. 获取指定的用户定义函数引用
$udfReference = Get-SPExcelUserDefinedFunction
–ExcelServiceApplication "Excel Services Application"
-Identity "Microsoft.Office.Server.WebAnalytics.UI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
20. 移除一个用户定义函数引用
$udfReference = Get-SPExcelUserDefinedFunction
–ExcelServiceApplication "Excel Services Application"
-Identity "Microsoft.Office.Server.WebAnalytics.UI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
Remove-SPExcelUserDefinedFunction $udfReference
–ExcelServiceApplication "Excel Service Application"
21. 其他命令
Set-SPExcelServiceApplication
Set-SPExcelDataConnectionLibrary
Set-SPExcelDataProvider
Set-SPExcelFileLocation
Set-SPExcelUserDefinedFunction
SharePoint Excel Service-PowerShell的更多相关文章
- SharePoint excel service web part 连接到 filter web part
本文讲述SharePoint excel service web part 连接到 filter web part的一个简单应用场景. SharePoint excel service web par ...
- SharePoint Excel Service - Couldn't Open the Workbook.
Error meesage: "Couldn't Open the Workbook. Wow, That's a big workbook. Unfortunately, we can't ...
- 修改Sharepoint 文档库列表点击Excel文件默认跳转到Excel Service服务 xlviewer.aspx页面
在Sharepoint 文档库中,当点击库中的一个Excel文件时,Sharepoint默认为转跳到Excel Services上,无论是Sharepoint 的是否开启了Excel Service, ...
- SharePoint Web service and template
SharePoint Web service对应的映射列表 WSS Web Services Web Reference Administration Service http://<s ...
- Sharepoint2013商务智能学习笔记之Excel Service服务配置(四)
第一步,新建Excel Service应用程序 第二步,管理中心,在应用程序管理区域点管理服务应用程序,进入应用程序管理列表, 再点击刚才新建好的ExcelServiceApplication进入ex ...
- SharePoint 2010: Export User Profile Properties to a Text File or Excel using PowerShell
导出到txt [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server") ...
- SharePoint 2013 使用PowerShell创建State Service
今天,搞SPD配置的sp2010wf迁移到sp2013环境上去,发布解决方案都很正常,给列表添加wf的时候报错“该表单无法显示,可能是由于 Microsoft SharePoint Server St ...
- SharePoint 2013 Service 状态无法启动,显示“启动中(Starting)”
Problem 在SharePoint 2013 Central Administration中启动 SharePoint Service(也称为:Service Machine Instance)时 ...
- User Get 'Access Denied' with Excel Service WebPart
用户可以访问网站,并且具有相应的访问权限. 用户尝试了其他浏览器和IE的其他版本. 解决: 将用户添加到 ‘Excel Services Views’ 这个SharePoint组就OK了.
随机推荐
- dp入门 专题记录 2017-7-26
POJ3176-Cow Bowling 题目大意:现有n行数,以金字塔的形式排列,即第一行一个数字,第二行2个数字,依次类推,现在需要找一条从第一层到第n层的路线,使得该路线上的所有点的权值和最大 思 ...
- 51nod 1103 N的倍数
1103 N的倍数 一个长度为N的数组A,从A中选出若干个数,使得这些数的和是N的倍数. 例如:N = 8,数组A包括:2 5 6 3 18 7 11 19,可以选2 6,因为2 + 6 = 8, ...
- Pyinstaller 中 pandas出错问题的解决(详细)
环境配置 pip install pyinstaller pyinstaller中的参数 -F 表示生成单个可执行文件 -c 显示命令行窗口,一般一开始的时候使用,如果没有错误,那就使用-w命令 -w ...
- shell while 语句
普通循环格式: while condition do command done 例子一 #!/bin/bash )) do echo $int let "int++" done 结 ...
- shell 脚本中所有循环语法
写出 shell 脚本中所有循环语法 for 循环 : for i in $(ls);do echo item:$i done while 循环 : #!/bin/bash COUNTER=0 whi ...
- Java实现邮箱激活验证2
SendEmail.java [java] view plaincopyprint? package com.app.tools; import java.util.Date; import ja ...
- 算法笔记--st表
概述:用倍增法求区间最值的离线算法,O(nlogn)预处理,O(1)访问. 预处理: 状态:st[i][j]:[i,i+2^j)之间的最值 状态转移:如果j等于0,st[i][j]=a[i] 如果j大 ...
- es6模块 nodejs模块和 typescript模块
es6模块 import和export nodejs模块 require和module.exports typescript模块 module和export
- NHibernate 映射关系
基本映射关系如下: NHibernate类型 .NET类型 Database类型 备注 AnsiChar System.Char DbType.AnsiStringFixedLength - 1 ch ...
- Redis之哈希类型命令
Hash(哈希) Redis hash 是一个string类型的field和value的映射表,hash特别适合用于存储对象. Redis 中每个 hash 可以存储 232 - 1 键值对(40多亿 ...