mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 18:23:09 +00:00
win_updates fix to use documented InstanceGuid property name
This commit is contained in:
@@ -280,7 +280,7 @@ Function DestroyScheduledJob {
|
||||
$running_tasks = @($schedserv.GetRunningTasks(0) | Where-Object { $_.Name -eq $job_name })
|
||||
|
||||
Foreach($task_to_stop in $running_tasks) {
|
||||
Write-DebugLog "Stopping running task $($task_to_stop.InstanceId)..."
|
||||
Write-DebugLog "Stopping running task $($task_to_stop.InstanceGuid)..."
|
||||
$task_to_stop.Stop()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user