< Back

Register-LumosScheduledTask

Sat Jan 18, 2020 9:53 am

NAME Register-LumosScheduledTask



SYNOPSIS

Registers a Scheduled Task to run Lumos automatically on Windows.





SYNTAX

Register-LumosScheduledTask [-ExcludeSystem] [-ExcludeApps] [-IncludeOfficeProPlus] [[-DarkWallpaper] <String>]

[[-LightWallpaper] <String>] [<CommonParameters>]





DESCRIPTION

Use this cmdlet to register a scheduled task on Windows so that Invoke-Lumos is executed using

your specified parameters at sunrise and sunset, or when the task is next available to run having

missed one of those scheduled times (e.g after system resumes).





PARAMETERS

-ExcludeSystem [<SwitchParameter>]

Exclude changing the System theme when switching to Dark/Light (Windows only) when the task runs.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-ExcludeApps [<SwitchParameter>]

Exclude changing the Applications (where supported) theme when switching to Dark/Light (Windows only) when the

task runs.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-IncludeOfficeProPlus [<SwitchParameter>]

Include changing the theme of Microsoft Office to Dark/Light (Windows only) when the task runs.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-DarkWallpaper <String>

Specify a path to use to modify the Desktop Wallpaper to when the task runs and switches to the Dark theme.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LightWallpaper <String>

Specify a path to use to modify the Desktop Wallpaper to when the task runs and switches to the Light theme.



Required? false

Position? 2

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:\\>Register-LumosScheduledTask -ExcludeApps -DarkWallpaper C:\\Temp\\dark.png -LightWallpaper C:\\Temp\\light.png



Creates a scheduled task that will run at the current local sunrise/sunset times and switch just the OS theme

to either dark or light, along with the specified light or dark wallpaper.











RELATED LINKS