通过Powershell捕获计时器作业处于暂停状态 [英] Capture Timer job stuck in pausing status via powershell

查看:118
本文介绍了通过Powershell捕获计时器作业处于暂停状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

计时器作业的status属性在Powershell结果中提供脱机或联机状态,但是如何捕获暂停的计时器作业的状态?因为即使处于暂停状态,timerjob.status也会将结果显示为在线.


m

解决方案

 离线"表示计时器作业已禁用. 在线"表示已启用计时器作业.

我们需要从 SPRunningJob 对象.

有关如何获取计时器工作状态的演示:

https://naimmurati.wordpress.com/2012/11/17/get-timer-job-status-programmatically/

最好的问候,

Linda Zhang


The status property of the timer job gives either offline or online status in powershell results but how do I capture the status of a pausing timer job ? as the timerjob.status would give result as online even though it is in pausing status.


m

解决方案

Hi,

 "Offline" means the timer job is disabled. And "Online" means the timer job is enabled.

We need to get the status from SPRunningJob object.

A demo about how to get timer job status:

https://naimmurati.wordpress.com/2012/11/17/get-timer-job-status-programmatically/

Best Regards,

Linda Zhang


这篇关于通过Powershell捕获计时器作业处于暂停状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆