mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Add scheduled_task code/doc-source/tests
This commit is contained in:
@@ -31,7 +31,7 @@ Documentation
|
||||
:numbered:
|
||||
|
||||
windows.rst
|
||||
various.rst
|
||||
winobject.rst
|
||||
native_exec.rst
|
||||
winproxy.rst
|
||||
pipe.rst
|
||||
|
||||
@@ -104,6 +104,19 @@ Output
|
||||
.. literalinclude:: samples_output\registry_registry.txt
|
||||
|
||||
|
||||
.. _sample_scheduled_task:
|
||||
|
||||
Scheduled tasks
|
||||
"""""""""""""""
|
||||
|
||||
.. literalinclude:: ..\..\samples\scheduled_tasks\scheduled_task.py
|
||||
|
||||
Output
|
||||
|
||||
.. literalinclude:: samples_output\scheduled_task_scheduled_task.txt
|
||||
|
||||
|
||||
|
||||
.. _sample_wintrust:
|
||||
|
||||
``windows.wintrust``
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
(cmd) python scheduled_tasks\scheduled_task.py
|
||||
Task scheduler is <TaskService at 0x6f2a1c0>
|
||||
Root folder is <TaskFolder "\" at 0x6f2a2b0>
|
||||
Listing sub folders
|
||||
* <TaskFolder "\ASUS" at 0x6f2a350>
|
||||
* <TaskFolder "\Intel" at 0x6f2a300>
|
||||
* <TaskFolder "\Microsoft" at 0x6f2a3a0>
|
||||
Manually opening subfolder <\Microsoft\Windows\AppID>
|
||||
Working into <TaskFolder "\Microsoft\Windows\AppID" at 0x6f2a3f0>
|
||||
* PolicyConverter
|
||||
* SmartScreenSpecific
|
||||
* VerifiedPublisherCertStoreCheck
|
||||
|
||||
Analysing task <Task "VerifiedPublisherCertStoreCheck" at 0x6f2a300>
|
||||
* Name: <VerifiedPublisherCertStoreCheck>
|
||||
* Path: <\Microsoft\Windows\AppID\VerifiedPublisherCertStoreCheck>
|
||||
* Definition: <<TaskDefinition at 0x6f2a3a0>>
|
||||
Listing actions:
|
||||
* Action: <<ExecAction at 0x6f2a350>>
|
||||
* Type: <TASK_ACTION_EXEC(0x0L)>
|
||||
* path: <%windir%\system32\appidcertstorecheck.exe>
|
||||
* arguments: <None>
|
||||
Listing triggers:
|
||||
* Trigger type: <TASK_TRIGGER_BOOT(0x8L)>
|
||||
|
||||
Creating folder <PFW_DEMO_FOLDER>
|
||||
Demo folder is <TaskFolder "\PFW_DEMO_FOLDER" at 0x6f2a3a0>
|
||||
Creating Task definition
|
||||
Registering task definition as <PFW_DEMO_TASK> in <<TaskFolder "\PFW_DEMO_FOLDER" at 0x6f2a3a0>>
|
||||
Created task is <Task "PFW_DEMO_TASK" at 0x6f2a530>
|
||||
Deleting the demo task
|
||||
Deleting the demo folder
|
||||
@@ -0,0 +1,108 @@
|
||||
Task scheduler
|
||||
==============
|
||||
|
||||
.. module:: windows.winobject.task_scheduler
|
||||
|
||||
.. note::
|
||||
|
||||
See sample :ref:`sample_scheduled_task`
|
||||
|
||||
|
||||
TaskService
|
||||
"""""""""""
|
||||
|
||||
.. autoclass:: TaskService
|
||||
:show-inheritance:
|
||||
:special-members: __call__
|
||||
|
||||
TaskFolder
|
||||
"""""""""""
|
||||
|
||||
.. autoclass:: TaskFolder
|
||||
:show-inheritance:
|
||||
:special-members: __getitem__, __delitem__, __call__
|
||||
|
||||
|
||||
Task
|
||||
""""
|
||||
|
||||
.. autoclass:: Task
|
||||
:show-inheritance:
|
||||
:special-members: __getitem__, __delitem__, __call__
|
||||
|
||||
TaskDefinition
|
||||
""""""""""""""
|
||||
|
||||
.. autoclass:: TaskDefinition
|
||||
:show-inheritance:
|
||||
:special-members: __getitem__, __delitem__, __call__
|
||||
|
||||
Action
|
||||
""""""
|
||||
|
||||
Action
|
||||
''''''
|
||||
|
||||
.. autoclass:: Action
|
||||
:show-inheritance:
|
||||
:inherited-members:
|
||||
:special-members: __getitem__, __delitem__, __call__
|
||||
|
||||
|
||||
ExecAction
|
||||
''''''''''
|
||||
|
||||
.. autoclass:: ExecAction
|
||||
:show-inheritance:
|
||||
:inherited-members:
|
||||
:special-members: __getitem__, __delitem__, __call__
|
||||
|
||||
|
||||
ComHandlerAction
|
||||
''''''''''''''''
|
||||
|
||||
.. autoclass:: ComHandlerAction
|
||||
:show-inheritance:
|
||||
:inherited-members:
|
||||
:special-members: __getitem__, __delitem__, __call__
|
||||
|
||||
|
||||
Trigger
|
||||
"""""""
|
||||
|
||||
.. autoclass:: Trigger
|
||||
:show-inheritance:
|
||||
:special-members: __getitem__, __delitem__, __call__
|
||||
|
||||
|
||||
Collections
|
||||
"""""""""""
|
||||
|
||||
TaskFolderCollection
|
||||
''''''''''''''''''''
|
||||
|
||||
.. autoclass:: TaskFolderCollection
|
||||
:show-inheritance:
|
||||
:special-members: __getitem__, __delitem__, __call__
|
||||
|
||||
TaskCollection
|
||||
''''''''''''''
|
||||
|
||||
.. autoclass:: TaskCollection
|
||||
:show-inheritance:
|
||||
:special-members: __getitem__, __delitem__, __call__
|
||||
|
||||
ActionCollection
|
||||
''''''''''''''''
|
||||
|
||||
.. autoclass:: ActionCollection
|
||||
:show-inheritance:
|
||||
:special-members: __getitem__, __delitem__, __call__
|
||||
|
||||
TriggerCollection
|
||||
'''''''''''''''''
|
||||
|
||||
.. autoclass:: TriggerCollection
|
||||
:show-inheritance:
|
||||
:special-members: __getitem__, __delitem__, __call__
|
||||
|
||||
@@ -16,4 +16,5 @@ This sections describes them by group of relation.
|
||||
service.rst
|
||||
volume.rst
|
||||
wmi.rst
|
||||
handle.rst
|
||||
handle.rst
|
||||
task_scheduler.rst
|
||||
Reference in New Issue
Block a user