TaskScheduler: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
Connects to the Task Scheduler Service and additionally allows to control and manipulate the Task Scheduler on another computer. | Connects to the Task Scheduler Service and additionally allows to control and manipulate the Task Scheduler on another computer. | ||
Examples how to connect to another computer ( | Examples how to connect to another computer (thanks to AdamUL for testing): | ||
<syntaxhighlight lang="autoit"> | <syntaxhighlight lang="autoit"> | ||
; Connect to a computer in AD where the current user is in a the local Admininstrators group | ; Connect to a computer in AD where the current user is in a the local Admininstrators group |
Revision as of 20:53, 3 September 2019
The TaskScheduler UDF offers functions to control and manipulate the Windows Task Scheduler.
Functions
_TS_Open
Connects to the Task Scheduler Service and additionally allows to control and manipulate the Task Scheduler on another computer.
Examples how to connect to another computer (thanks to AdamUL for testing):
; Connect to a computer in AD where the current user is in a the local Admininstrators group
; on that computer, via domain or local group, or directly. Use AD computer name.
Global $oService = _TS_Open("COMPUTERNAME")
; Connect to a computer in AD where the entered user (AdminUser) is an AD user, and is in the
; local Administrators group on that computer, via domain or local group, or directly. Use AD computer name.
Global $oService = _TS_Open("COMPUTERNAME", "AdminUser", "AD", "Password")
; Connect to a computer in AD where the entered local user (Administrator) is NOT an AD user,
; and is in the local Administrators group on that computer, via local group, or directly. Use AD computer name.
Global $oService = _TS_Open("COMPUTERNAME", "Administrator", ".", "Password")
; Non-domain computer where the entered local user (Administrator) is in the local Administrators group
; on that computer. Use IP address or DNS name to connect.
Global $oService = _TS_Open("192.168.0.1", "Administrator", ".", "Password")