You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ScheduledTasksChecker allows you to perform various actions on Windows scheduled tasks.
5
+
6
+
.DESCRIPTION
7
+
The function will perform the specified action on the scheduled task, and it uses Job Cmdlets for job processing, modify as you wish.
8
+
9
+
.PARAMETERAction
10
+
Mandatory - specifies the action to be performed on the scheduled task, it accepts one of the following strings: "Start", "Stop", "GetStatus", "Enable", "Disable", "GetInfo", "Export".
11
+
.PARAMETERTaskName
12
+
Mandatory - mandatory parameter that specifies the name of the scheduled task to be acted upon, it must be a non-null and non-empty string.
13
+
.PARAMETERTaskPath
14
+
NotMandatory - path of the scheduled task to be acted upon, if not provided, the task will be assumed to be in the root folder of the task scheduler.
15
+
.PARAMETERExportPath
16
+
NotMandatory - optional parameter that is only used when the $Action is set to "Export", it specifies the path where the exported scheduled task should be saved.
17
+
.PARAMETERAsJob
18
+
NotMandatory - specifies whether the action should be executed as a background job or not, if specified, the action will be executed as a background job, allowing the script to continue executing while the job runs in the background.
0 commit comments