< Back
Invoke-Lumos
Post
NAME Invoke-Lumos
SYNOPSIS
Sets the Windows or Mac Theme to light or dark mode dependent on time of day.
SYNTAX
Invoke-Lumos [-Dark] [-ExcludeSystem] [-IncludeOfficeProPlus] [-ExcludeApps] [-DarkWallpaper <String>]
[-LightWallpaper <String>] [<CommonParameters>]
Invoke-Lumos [-Light] [-ExcludeSystem] [-IncludeOfficeProPlus] [-ExcludeApps] [-DarkWallpaper <String>]
[-LightWallpaper <String>] [<CommonParameters>]
DESCRIPTION
Use this cmdlet to change the theme on Windows 10 or MacOS Mojave to the light of dark themes,
either as specified by parameters or (for Windows only), automatically based on the local time
of day and whether it is before or after sunrise/sunset.
PARAMETERS
-Dark [<SwitchParameter>]
Switch to the Dark OS theme.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Light [<SwitchParameter>]
Switch to the Light OS theme.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ExcludeSystem [<SwitchParameter>]
Exclude changing the System theme when switching to Dark/Light (Windows only).
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).
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).
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 switching to the Dark theme.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-LightWallpaper <String>
Specify a path to use to modify the Desktop Wallpaper to when switching to the Light theme.
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:\\>Invoke-Lumos -Dark -DarkWallpaper ./dark-wallpaper.png
Switches the OS theme to the Dark theme and specified Wallpaper.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Invoke-Lumos -Light -LightWallpaper ./light-wallpaper.png
Swithches the OS theme to the Light theme and specified Wallpaper.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Invoke-Lumos -Dark -ExcludeApps
Switches the OS theme to Dark, but (on Windows only) does not change the theme of apps that support
Dark/Light theme.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Invoke-Lumos
On Windows: Switches to either Dark or Light theme dependent on your current location/time of day.
On MacOS: Switches current theme from either Light to Dark or Dark to Light.
RELATED LINKS
SYNOPSIS
Sets the Windows or Mac Theme to light or dark mode dependent on time of day.
SYNTAX
Invoke-Lumos [-Dark] [-ExcludeSystem] [-IncludeOfficeProPlus] [-ExcludeApps] [-DarkWallpaper <String>]
[-LightWallpaper <String>] [<CommonParameters>]
Invoke-Lumos [-Light] [-ExcludeSystem] [-IncludeOfficeProPlus] [-ExcludeApps] [-DarkWallpaper <String>]
[-LightWallpaper <String>] [<CommonParameters>]
DESCRIPTION
Use this cmdlet to change the theme on Windows 10 or MacOS Mojave to the light of dark themes,
either as specified by parameters or (for Windows only), automatically based on the local time
of day and whether it is before or after sunrise/sunset.
PARAMETERS
-Dark [<SwitchParameter>]
Switch to the Dark OS theme.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Light [<SwitchParameter>]
Switch to the Light OS theme.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ExcludeSystem [<SwitchParameter>]
Exclude changing the System theme when switching to Dark/Light (Windows only).
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).
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).
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 switching to the Dark theme.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-LightWallpaper <String>
Specify a path to use to modify the Desktop Wallpaper to when switching to the Light theme.
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:\\>Invoke-Lumos -Dark -DarkWallpaper ./dark-wallpaper.png
Switches the OS theme to the Dark theme and specified Wallpaper.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Invoke-Lumos -Light -LightWallpaper ./light-wallpaper.png
Swithches the OS theme to the Light theme and specified Wallpaper.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Invoke-Lumos -Dark -ExcludeApps
Switches the OS theme to Dark, but (on Windows only) does not change the theme of apps that support
Dark/Light theme.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Invoke-Lumos
On Windows: Switches to either Dark or Light theme dependent on your current location/time of day.
On MacOS: Switches current theme from either Light to Dark or Dark to Light.
RELATED LINKS