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了.
随机推荐
- 对Tomcat启动或运行时,项目对jar包依赖路径的一些粗浅认知
Tomcat在运行webapp项目的时候,需要各种依赖jar包.它会从2个地方去找这些包 1.Tomcat自己的lib目录中 2.webapp目录下,webapps\{项目}\WEB-INF\lib ...
- vue router菜单 存在点哪个但还是会显示active
<router-link to="/" exact>Home</router-link> <router-link to="/add&quo ...
- spring-cloud: eureka之:ribbon负载均衡自定义配置(二)
spring-cloud: eureka之:ribbon负载均衡自定义配置(二) 有默认配置的话基本上就是轮询接口,现在我们改用自定义配置,同时支持:轮询,随机接口读取 准备工作: 1.eureka服 ...
- JPA实体关系映射:@ManyToMany多对多关系、@OneToMany@ManyToOne一对多多对一关系和@OneToOne的深度实例解析
JPA实体关系映射:@ManyToMany多对多关系.@OneToMany@ManyToOne一对多多对一关系和@OneToOne的深度实例解析 今天程序中遇到的错误一 org.hibernate.A ...
- 20170719xlVbaAbsorbProcedure
Sub AbsorbThisProcedure() If Application.VBE.MainWindow.Visible = False Then MsgBox "请先激活VBE编辑窗 ...
- android--------面试题收集
Android是一种基于Linux的自由及开放源代码的操作系统,主要使用于移动设备,如智能手机和平板电脑,由Google公司和开放手机联盟领导及开发.这里会不断收集和更新Android基础相关的面试题 ...
- HBase基于region数目和data locality来balance regions
1. 在Hbase的运维过程中,我们经常需要做如下操作: 移动 regionserver 到其他的 regionserver group中 下线一台机器 增加一台机器 移动 table 到其他 re ...
- 输入每个值连续出现几次的问题(其中包括while括号中出现任意输入问题)
#include<iostream> int main() { //统计输入的每个值,连续出现了多少次 std::cout<<" please enter the n ...
- Oracle性能诊断艺术-读书笔记
create table test0605 as select * from dba_objects; select t1.owner,t1.object_name,t1.object_id from ...
- python 小练习 10
给你一个十进制数a,将它转换成b进制数,如果b>10,用大写字母表示(10用A表示,等等) a为32位整数,2 <= b <= 16 如a=3,b = 2, 则输出11 AC: di ...