Added scheduling support via the Set-NessusScanSchedule function#22
Open
ConnorGriffin wants to merge 2 commits intotenable:masterfrom
Open
Added scheduling support via the Set-NessusScanSchedule function#22ConnorGriffin wants to merge 2 commits intotenable:masterfrom
ConnorGriffin wants to merge 2 commits intotenable:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added the function Set-NessusScanSchedule to Scan.ps1, adding support for managing scan schedules.
Also added Get-NessusTimezones to support the Timezone parameter of this function.
It looks like Atom cleaned up a lot of excess whitespace automatically. I did not intend to make those changes, but they do not seem detrimental at all.
Set-NessusScanSchedule Examples:
Repeat a scan daily at 12:30 PM:
Set-NessusScanSchedule <SessionID[]> <ScanID[]> -Frequency 'Daily' -StartTime '2018-03-30 12:30'Repeat a scan every two weeks on Monday and Friday at 12:30 PM:
Set-NessusScanSchedule <SessionID[]> <ScanID[]> -Frequency 'Weekly' -ByDay 'MO,FR' -Interval 2 -StartTime '2018-03-30 12:30'Repeat a scan monthly on the second Tuesday at 12:30 PM:
Set-NessusScanSchedule <SessionID[]> <ScanID[]> -Frequency 'Monthly' -RepeatBy 'Week of Month' -StartTime '2018-03-13 12:30'Repeat a scan every three months on day 13 at 12:30 PM:
Set-NessusScanSchedule <SessionID[]> <ScanID[]> -Frequency 'Monthly' -RepeatBy 'Week of Month' -Interval 3 -StartTime '2018-03-13 12:30'Repeat a scan every year on March 30th at 12:30 PM UTC:
Set-NessusScanSchedule <SessionID[]> <ScanID[]> -Frequency 'Yearly' -StartTime '2018-03-30 12:30' -Timezone 'UTC'Disable an existing scan schedule:
Set-NessusScanSchedule <SessionID[]> <ScanID[]> -Enabled $falseEnable an existing scan schedule:
Set-NessusScanSchedule <SessionID[]> <ScanID[]> -Enabled $true