Skip to content

Latest commit

 

History

History
66 lines (41 loc) · 1.66 KB

runningtask-enginepid.md

File metadata and controls

66 lines (41 loc) · 1.66 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
RunningTask.EnginePID property
For scripting, gets the process ID for the engine (process) which is running the task.
cb8a0f2f-ebe3-4f52-8fbd-b0cebb539728
EnginePID property Task Scheduler
EnginePID property Task Scheduler , RunningTask object
RunningTask object Task Scheduler , EnginePID property
apiref
RunningTask.EnginePID
taskschd.dll
COM
reference
05/31/2018

RunningTask.EnginePID property

For scripting, gets the process ID for the engine (process) which is running the task.

This property is read-only.

Syntax

RunningTask.EnginePID As Integer

Property value

The process ID for the engine which is running the task.

Remarks

The process ID returned by this property cannot be appended directly to a string. The returned value needs to be converted to an integer value first by calling the CInt function on the returned value.

ProcessId = cint(RunningTask.EnginePID)
wscript.echo "Process Id of Engine is " & "ProcessId

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Type library
Taskschd.tlb
DLL
Taskschd.dll