< Back

Update-LumosScheduledTask

Sat Jan 18, 2020 9:53 am

NAME Update-LumosScheduledTask



SYNOPSIS

Updates the run times for the Lumus Scheduled Task with the current sunrise/sunset values.





SYNTAX

Update-LumosScheduledTask [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

This cmdlet is called by Register-LumosScheduledTask to add the appropriate triggers to the task for sunrise

and sunset. Register-LumosScheduled task also schedules it to run as an additional action of the Lumos task

so that the trigger times for the task are updated as the sunrise and sunset times change through the year.





PARAMETERS

-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Update-LumosScheduledTask



Windows Only: Retrieves the current logged on users geolocation from the OS then retrieves the local sunrise

and sunset times for the user via an API call. It then modifies the Scheduled Task named 'Lumos' with these

triggers

as well as adds a trigger to run it on logon.











RELATED LINKS