title | description | ms.assetid | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TaskSettings.AllowHardTerminate property |
For scripting, gets or sets a Boolean value that indicates that the task may be terminated by the Task Scheduler service using TerminateProcess. |
1dfd692e-efbe-41a2-8dbd-b14cf26bbcb7 |
|
|
|
|
|
reference |
05/31/2018 |
For scripting, gets or sets a Boolean value that indicates that the task may be terminated by the Task Scheduler service using TerminateProcess. The service will try to close the running task by sending the WM_CLOSE notification, and if the task does not respond, the task will be terminated only if this property is set to true.
This property is read/write.
TaskSettings.AllowHardTerminate As Boolean
If True, the task can be terminated by using TerminateProcess. If False, the task cannot be terminated by using TerminateProcess.
When reading or writing XML for a task, this setting is specified in the AllowHardTerminate element of the Task Scheduler schema.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Type library |
|
DLL |
|