SharePoint场管理-PowerShell(二)
1. 合并Log文件
Merge-SPLogFile –Path E:\Logs\MergedLog.log –StartTime "1/19/2010"
–Overwrite
2. 结束当前的Log文件
New-SPLogFile
3. 查看SPD设置
Get-SPDesignerSettings –WebApplication "SharePoint – 80"
4. 修改SPD设置
Set-SPDesignerSettings –WebApplication "SharePoint – 80"
–AllowDesigner:$true –AllowMasterPageEditing:$false
–AllowRevertFromTemplate:$false –ShowURLStructure:$true
AllowDesigner:表示Web应用程序中的网站是否允许用SPD编辑,默认值为True,用户执行该操作必须有相应的权限。
AllowMasterPageEditing:默认值为True,表示Web应用程序中网站的母版页和页面布局是否可以用SPD编辑。
AllowRevertFromTemplate:表示是否可以使用SPD将网站页面从网站定义中分离,默认值为Ture。
ShowURLStructure:表示Web应用程序的URL结构是否可以修改,默认值为True。
5. 查看工作流配置
Get-SPWorkflowConfig –WebApplication "SharePoint – 80"
查看Web应用程序的工作流配置
Get-SPWorkflowConfig –SiteCollection http://sp2010
查看网站集的工作流配置
6. 修改工作流配置
Set-SPWorkflowConfig –WebApplication "SharePoint – 80"
–DeclarativeWorkflowsEnabled:$true
–EmailNoPermissionParticipantsEnabled:$false
–SendDocumentToExternalParticipants:$false
修改Web应用程序的工作流配置
Set-SPWorkflowConfig –SiteCollection "http://sp2010"
–DeclarativeWorkflowsEnabled:$true
–EmailNoPermissionParticipantsEnabled:$false
–SendDocumentToExternalParticipants:$false
修改网站集的工作流配置
DeclarativeWorkflowEnabled:表示用户是否可以通过部署的托管代码定义工作流,默认值为True。
EmailNoPermissionParticipantsEnabled:表示当一个任务指派给一个没有网站权限的用户时,他是否会收到邮件,默认值为True。
SendDocumentToExternalParticipants:表示外部用户是否收到工作流文档的副本,默认值为False。
7. 获取TimerJob信息
Get-SPTimerJob
8. 获取指定的TimerJob
$timerJob = Get-SPTimerJob -Identity "DocIDEnable"
9. 启用一个TimerJob
$timerJob = Get-SPTimerJob -Identity "DocIDEnable"
Enable-SPTimerJob $timerJob
10. 禁用一个TimerJob
$timerJob = Get-SPTimerJob -Identity "DocIDEnable"
Disable-SPTimerJob $timerJob
11. 启动一个TimerJob
$timerJob = Get-SPTimerJob -Identity "DocIDEnable"
Start-SPTimerJob $timerJob
12. 设置TimerJob的时间表
$timerJob = Get-SPTimerJob -Identity "DocIDEnable"
Set-SPTimerJob –Identity $timerJob –Schedule "Daily at 18:00:00"
Schedule:该参数是一个字符串,但是必须满足以下格式
Every X minutes between 0 and 59.
Hourly between 0 and 59.
Daily at hh:mm:ss.
Weekly between <day> hh:mm:ss and <day> hh:mm:ss. (<day> is the three letter day of the week: Sun, Mon, Tue, Wed, Thu, Fri, or Sat.)
Monthly at dd hh:mm:ss.
Yearly at <month> dd hh:mm:ss. (<month> is the three letter month: Jan, Feb, Mar, and so on.)
SharePoint场管理-PowerShell(二)的更多相关文章
- SharePoint场管理-PowerShell(一)
1. 查看场配置信息 Get-SPFarmConfig 2. 设置场配置信息 Set-SPFarmConfig –ASPScriptOptimizationEnabled:$true –DataFor ...
- [转载]SharePoint 网站管理-PowerShell
1. 显示场中所有可用的网站集 Get-SPSite Get-SPSite 2. 显示某一Web应用程序下可用的网站集 Get-SPSite –WebApplication "SharePo ...
- SharePoint 网站管理-PowerShell
1. 显示场中所有可用的网站集 Get-SPSite 2. 显示某一Web应用程序下可用的网站集 Get-SPSite –WebApplication "SharePoint – 80&qu ...
- SharePoint 2013的100个新功能之场管理
一:改进的SPSite命令 SharePoint 2013中对SPSite PowerShell命令行做了改进提升,使网站集操作更简便.比如,一个新的参数“HostHeaderWebApplicati ...
- SharePoint在管理中心创建Secure Store
版权声明:本文为博主原创文章,未经博主同意不得转载. https://blog.csdn.net/u012025054/article/details/35780063 SharePoint在管理中心 ...
- .NET组件程序设计之线程、并发管理(二)
.Net组件程序设计之线程.并发管理(二) 2.同步线程 手动同步 监视器 互斥 可等待事件 同步线程 所有的.NET组件都支持在多线程的环境中运行,可以被多个线程并发访问,如果没有线程同步,这样的后 ...
- Android线程管理(二)——ActivityThread
线程通信.ActivityThread及Thread类是理解Android线程管理的关键. 线程,作为CPU调度资源的基本单位,在Android等针对嵌入式设备的操作系统中,有着非常重要和基础的作用. ...
- linux磁盘管理系列二:软RAID的实现
磁盘管理系列 linux磁盘管理系列一:磁盘配额管理 http://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_linux_040_quota.html l ...
- Linux内存管理(二)
Linux内存管理之二:Linux在X86上的虚拟内存管理 本文档来自网络,并稍有改动. 前言 Linux支持很多硬件运行平台,常用的有:Intel X86,Alpha,Sparc等.对于不能够通用的 ...
随机推荐
- aop编程 环绕round
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.sp ...
- PostgreSQL正则表达式查询
参考http://www.php100.com/manual/PostgreSQL8/functions-matching.html LIKE string LIKE pattern [ ESCAPE ...
- Android Activity 常用功能设置(全屏、横竖屏等)
Activity全屏设置 方式1:AndroidManifest.xml <activity android:name="myAcitivty" android:theme ...
- Handler.removeMessages的作用,有时候为什么一定要先remove一下呢
removeMessages会将handler对应message queue里的消息清空,如果带了int参数则是对应的消息清空.队列里面没有消息则handler会不工作,但不表示handler会停止. ...
- 使用代码辅助生成工具CodeSmith -- 生成NHibernate的映射文件
首先下载CodeSmith工具:在百度云中,在CodeSmith文件夹中. 安装,使用激活工具激活. 然后下载NHibernate模板,也是在百度云中,在CodeSmith文件夹中. 之后直接点击NH ...
- Ch02 从零开始实例学习4
演练2-4 添加视图 原文链接:http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/adding-a-vi ...
- 用 Asterisk 搭建自己的免费 VoIP 服务器
原文 http://www.yaoblog.info/?p=5021 1. 这里以 Debian 为例子,安装 Asterisk apt-get update apt-get install aste ...
- maven生成war包的两种方式
war包即对WEB应用程序进行打包,用于应用容器的部署.如在jboss中只要把war包丢入deploy目录下即可发布自己的应用了.打包方式有很多中,很多工具本身就支持此功能.下面主要介绍通过maven ...
- HDU 4669 Mutiples on a circle (DP , 统计)
转载请注明出处,谢谢http://blog.csdn.net/ACM_cxlove?viewmode=contents by---cxlove 题意:给出一个环,每个点是一个数字,取一个子串,使 ...
- metasploit学习之ms03_026
傻瓜式利用ms03_026_dcom: Matching Modules ================ Name Disclosure Date Rank Description ---- --- ...