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