Skip to content

This script simplifies the creation scheduled tasks for powershell scripts that need to run every x minutes.

License

Notifications You must be signed in to change notification settings

RubenMeneses/PSSchedule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSSchedule

This PowerShell script simplifies the creation of scheduled tasks to run other PowerShell scripts.

It is common for IT Admins to need to run scripts at a regular intervals. This scripts takes a number of parameters that need to run every x minutes. The script will create the command in the correct format to run a PowerShell script

Edit the following input vars before running.

$PSCommand ="$SCRIPT_PARENT\calc.ps1" #Powershell Command path

$intervalMInutes=1 #Reoccuring number of minutes

$execMaxMinutes=60 #Max execution time in minutes

$TaskName = "Anon WatchList" #Task Name

$RunLevelHigh = $false #Runlevel Highest or Limited

$JobRunAs =$RunAsLogedOnUser #Task identity

About

This script simplifies the creation scheduled tasks for powershell scripts that need to run every x minutes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published