SharePoint PowerShell 修改计时器任务

  前言

  最近碰到需要修改计时器任务的需求,然后搜了搜,发现有powershell命令可以搞定,记录一下。

  $timerJob = Get-SPTimerJob -Identity "DocIDEnable"
  Set-SPTimerJob -Identity $timerJob -Schedule "Daily at 18:00:00"

  引用链接:

  https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/set-sptimerjob?view=sharepoint-ps

原文地址:https://www.cnblogs.com/jianyus/p/9758911.html

时间: 2024-10-19 23:16:02

SharePoint PowerShell 修改计时器任务的相关文章

sharepoint 2013 修改某些显示名,email和活动目录不一致的账户 powershell

#该脚本修改某些显示名,email和活动目录不一致的账户Add-PSSnapin Microsoft.SharePoint.PowerShell $ConfirmPreference = 'None'  #关闭确认提示 $filePath="c:\file\" $allUsers=get-content C:\file\user.txt  -Encoding UTF8                   #从文件中读取需要迁移的账户,每一行包含账户和新的显示名称,新的email地址,字

SharePoint PowerShell 启动工作流

前言 最近,有个需求,就是需要批量更新列表内容,平时这些操作,都用powershell去完成,但是,powershell需要在服务器上操作,而服务器权限需要通过客户的层层把关,所以,这次就考虑不用命令了,而改用SharePoint网站工作流,然后,用powershell命令去创建任务计划. 这样,以后有需求修改,直接在客户端就能做了,而任务计划,是始终不会变的. 1.创建网站工作流,这个就比较简单了,我们就不多少了,直接在SharePoint Designer里干就好了: 2.启动网站工作流的P

sharepoint powershell 根据报错的GUID查询错误

打开sharepoint powershell Get-splogevent | ?{$_.Correlation -eq "GUID"}  | select Area,category,Level,EventID,Message | Format-List > c:\errlog.txt 把GUID替换成爆出错误的GUID

sharepoint 2013 使用SharePoint powershell 2013更改搜索服务器方法

$hostA = Get-SPEnterpriseSearchServiceInstance -Identity "DevSearch2013" Start-SPEnterpriseSearchServiceInstance -Identity $hostA Get-SPEnterpriseSearchServiceInstance -Identity $hostA $ssa = Get-SPEnterpriseSearchServiceApplication $newTopology

在Powershell ISE中添加sharepoint的智能提示,Enable SharePoint PowerShell Commandlets in the PowerShell ISE

Powershell ISE在默认状态下有一个不好的地方就是不会显示关于SharePoint的一些智能提示,例如你写一个"get-"后面提示的选项里没有sp开头的一些对象.于是找了一下解决方案. 首先打开Powershell ISE, 把下面的代码拷贝到ISE中 1 if (!(test-path $profile )) 2 { 3 new-item -type file -path $profile -force 4 } 5 6 7 $cmd = 'if((Get-PSSnapin

Using the Windows Scheduler to run a SharePoint PowerShell Backup Script

Problem SharePoint administrators need to run regular backups using PowerShell, the STSADM tool or in Central Administration. There is no "built in" way to automate these backups. Wouldn't it be great to devise a method to automated these jobs?

SharePoint PowerShell部署开发好的WebPart到服务器上

内容仅供参考,需结合实际需求来处理. =========SharePoint 环境下运行ps1文件,ps1内容如下======= 1 Set-ExecutionPolicy ByPass 2 Add-PSSnapin Microsoft.SharePoint.PowerShell 3 4 Add-SPSolution -LiteralPath "C:\Deploy_2013-08-21_v2.2\WSP\Custom_Lib.wsp" 5 Add-SPSolution -Literal

sharepoint powershell 批量处理匿名访问

配置Web Application启用匿名访问 Add-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $webApp = Get-SPWebApplication 'http://sharepoint.crescent.com/' $webApp.IisSettings['Default'].AllowAnonymous=$true $webApp.update() 配置单个网站启用匿名访

windows10用powershell修改文档/文件夹创建时间、修改时间、访问时间

参考博文:windows用powershell修改文档/文件夹创建时间.修改时间 用win10自带的powershell可以轻松修改文档/文件夹创建时间.修改时间.而且可以批量修改. 1. 步骤: 新建一个bat文件,在其中添加语句: @ECHO OFF powershell.exe -command "ls 'folder_path\*.dll' | foreach-object { $_.LastWriteTime = Get-Date; $_.CreationTime = Get-Date