{"id":14064286,"url":"https://github.com/jdhitsolutions/ScheduledJobTools","last_synced_at":"2025-07-29T17:33:12.218Z","repository":{"id":145021026,"uuid":"139176966","full_name":"jdhitsolutions/ScheduledJobTools","owner":"jdhitsolutions","description":"A Windows PowerShell module with a set of commands for managing scheduled jobs. :card_file_box: :hammer_and_wrench:","archived":false,"fork":false,"pushed_at":"2024-10-17T19:00:30.000Z","size":49,"stargazers_count":33,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-02T17:55:26.755Z","etag":null,"topics":["powershell","scheduledjobs"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdhitsolutions.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-29T17:22:04.000Z","updated_at":"2024-10-23T11:00:55.000Z","dependencies_parsed_at":"2024-10-28T10:23:38.831Z","dependency_job_id":"f189d9c7-b7c5-4c68-a1ae-6a23d03b98af","html_url":"https://github.com/jdhitsolutions/ScheduledJobTools","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FScheduledJobTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FScheduledJobTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FScheduledJobTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FScheduledJobTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdhitsolutions","download_url":"https://codeload.github.com/jdhitsolutions/ScheduledJobTools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228032926,"owners_count":17858918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["powershell","scheduledjobs"],"created_at":"2024-08-13T07:03:47.643Z","updated_at":"2024-12-04T02:31:34.306Z","avatar_url":"https://github.com/jdhitsolutions.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# ScheduledJobTools\n\n[![PSGallery Version](https://img.shields.io/powershellgallery/v/ScheduledJobTools.png?style=for-the-badge\u0026logo=powershell\u0026label=PowerShell%20Gallery)](https://www.powershellgallery.com/packages/ScheduledJobTools/) [![PSGallery Downloads](https://img.shields.io/powershellgallery/dt/ScheduledJobTools.png?style=for-the-badge\u0026label=Downloads)](https://www.powershellgallery.com/packages/ScheduledJobTools/)\n\nA PowerShell module with commands for working with scheduled jobs. PowerShell scheduled jobs are only supported on Windows platforms. You can install this module from the PowerShell Gallery:\n\n```powershell\nInstall-Module ScheduledJobTools\n```\n\nThis module will not run on PowerShell 7 since it does not support the ScheduledJob module.\n\n## Commands\n\nThe module consists of these commands:\n\n[Export-ScheduledJob](/docs/Export-ScheduledJob.md)\n\nThis command will export a scheduled job configuration to an XML file, making it easier to recreate on another computer or if you need to re-install.\n\n[Import-ScheduledJob](/docs/Import-ScheduledJob.md)\n\nAssuming you have exported the scheduled job, use this command to import it and recreate the configuration.\n\n[Get-ScheduledJobResult](/docs/Get-ScheduledJobResult.md)\n\nThis command is designed to make it easier to get the most recent results of your scheduled job.\n\n```text\nPS C:\\\u003e Get-ScheduledJobResult\n\nID  Name                StartTime             EndTime               Runtime          State\n--  ----                ---------             -------               -------          -----\n551 OfflineTickle       9/4/2024 10:00:13 AM  9/4/2024 10:00:14 AM  00:00:01.0010018 Completed\n154 myTasksEmail        9/4/2024 8:00:08 AM   9/4/2024 8:00:11 AM   00:00:02.9260021 Completed\n58  WeeklyFullBackup    8/28/2024 10:00:08 PM 8/28/2024 10:14:43 PM 00:14:35.6991443 Completed\n553 RemoteOpWatcher     9/4/2024 10:33:56 AM  9/4/2024 10:33:56 AM  00:00:00.6534636 Completed\n153 DailyIncremental    9/3/2024 10:00:07 PM  9/3/2024 10:00:39 PM  00:00:31.3470147 Completed\n72  JDHITBackup         9/3/2024 6:00:07 PM   9/3/2024 6:00:10 PM   00:00:03.1494835 Completed\n```\n\nThe function has an alias of `ljr`.\n\n[Remove-OldJobResult](/docs/Remove-OldJobResult.md)\n\nUse this command to remove all but the most recent scheduled job result.\n\n[Get-ScheduledJobDetail](/docs/Get-ScheduledJobDetail.md)\n\nPowerShell Scheduled jobs are intertwined with Scheduled Tasks. There is a lot of useful information, but it is buried in nested objects and properties. This command is designed to make it easier to get detailed information about a scheduled job.\n\n```text\nPS C:\\\u003e Get-ScheduledJobDetail -Name DailyIncremental\n\n\nID                     : 3\nName                   : DailyIncremental\nCommand                : C:\\scripts\\PSBackup\\DailyIncrementalBackup.ps1\nEnabled                : True\nState                  : Ready\nNextRun                : 9/5/2024 10:00:00 PM\nMaxHistory             : 7\nRunAs                  : BOVINE320\\Jeff\nFrequency              : Weekly\nDays                   : {Sunday, Monday, Tuesday, Wednesday...}\nRepetitionDuration     :\nRepetitionInterval     :\nDoNotAllowDemandStart  : False\nIdleDuration           : 00:10:00\nIdleTimeout            : 01:00:00\nMultipleInstancePolicy : IgnoreNew\nRestartOnIdleResume    : False\nRunElevated            : True\nRunWithoutNetwork      : False\nShowInTaskScheduler    : True\nStartIfNotIdle         : True\nStartIfOnBatteries     : False\nStopIfGoingOffIdle     : False\nStopIfGoingOnBatteries : True\nWakeToRun              : True\n```\n\n## Customizations\n\nWhen you import the module, it will modify the ScheduledJob object to define a script property called `NextRun`. This makes it easier to view when a job is scheduled to run again.\n\n```text\nPS C:\\\u003e Get-ScheduledJob JDHITBackup | Select-Object Name,NextRun\n\nName        NextRun\n----        -------\nJDHITBackup 9/4/2024 6:00:00 PM\n```\n\nOr you can use a custom table view.\n\n```text\nPS C:\\\u003e Get-ScheduledJob | Format-Table -view NextRun\n\nId Enabled Name                NextRun               Command\n-- ------- ----                -------               -------\n2  False   DailyDiskReport     9/4/2024 11:00:00 PM  C:\\scripts\\DiskReports.ps1\n3  True    DailyIncremental    9/5/2024 10:00:00 PM  C:\\scripts\\PSBackup\\DailyIncrementalBackup.ps1\n4  True    DailyWatcher                              ...\n5  False   HelpUpdate          9/28/2024 12:00:00 PM  Update-Help\n6  True    JDHITBackup         9/4/2024 6:00:00 PM   C:\\scripts\\Backup-JDHIT.ps1\n8  True    myTasksEmail        9/5/2024 8:00:00 AM   ...\n9  True    OfflineTickle       9/4/2024 11:00:00 AM  ...\n10 True    RemoteOpWatcher     9/4/2024 10:41:41 AM  ...\n11 True    WeeklyFullBackup    9/4/2024 10:00:00 PM  C:\\scripts\\PSBackup\\WeeklyFullBackup.ps1\n73 True    tmp50E8             9/4/2024 12:45:45 PM  ...\n```\n\nVersion 2.3.0 introduced a property set called `RunInfo`.\n\n```text\nPS C:\\\u003e Get-ScheduledJob WeeklyFullBackup | Select-Object RunInfo\n\nName             NextRun                LastRun                Enabled\n----             -------                -------                -------\nWeeklyFullBackup 10/18/2024 10:00:00 PM 10/11/2024 10:14:16 PM    True\n```\n\nThe view uses ANSI escape sequences and will color `False` in red.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdhitsolutions%2FScheduledJobTools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdhitsolutions%2FScheduledJobTools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdhitsolutions%2FScheduledJobTools/lists"}