Last active
April 29, 2019 15:26
-
-
Save dsolodow/508b2c16b489fe7ec951 to your computer and use it in GitHub Desktop.
Description for New-UpdateHelpJob.ps1
This file contains 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
<# | |
Creates a scheduled task to run a daily Update-Help on the local machine | |
#> | |
$trigger = New-JobTrigger -Weekly -At "7:30 AM" -DaysOfWeek "Monday" | |
$option = New-ScheduledJobOption -StartIfOnBattery -RequireNetwork -RunElevated | |
Register-ScheduledJob -Name UpdateHelp -ScriptBlock {Update-Help -Module * -Force} -Trigger $trigger -ScheduledJobOption $option |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment