Skip to content

UpdatesInterval Specify Day #355

Answered by Romanitho
zeehaque asked this question in Q&A
May 30, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi,
By default, WAU will run on tuesday. You can adjuste this inside the install script before running it. Have a look in the Winget-AutoUpdate-Install.ps1 from line 288 and change the day of week with the one you want:

elseif ($UpdatesInterval -eq "Weekly") {
    $tasktriggers += New-ScheduledTaskTrigger -Weekly -At $UpdatesAtTime -DaysOfWeek 2
}
elseif ($UpdatesInterval -eq "BiWeekly") {
    $tasktriggers += New-ScheduledTaskTrigger -Weekly -At $UpdatesAtTime -DaysOfWeek 2 -WeeksInterval 2
}
elseif ($UpdatesInterval -eq "Monthly") {
    $tasktriggers += New-ScheduledTaskTrigger -Weekly -At $UpdatesAtTime -DaysOfWeek 2 -WeeksInterval 4
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zeehaque
Comment options

@Romanitho
Comment options

Answer selected by zeehaque
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants