⚡ PowerShell 5.1+

Enable Light Mode

Reverts File Explorer and other system surfaces to light mode.

By WindowsScripting.com · 692 B
Set-LightMode.ps1
<#
.SYNOPSIS
    Enable Light Mode.

.DESCRIPTION
    Reverts File Explorer and other system surfaces to light mode.

    Sets HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize \ AppsUseLightTheme to 1.

.EXAMPLE
    .\Set-LightMode.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize'

if (-not (Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

New-ItemProperty -Path $regPath -Name 'AppsUseLightTheme' -Value 1 -PropertyType DWord -Force | Out-Null

Write-Host "Enable Light Mode applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green