← Intune

🌙 Enable Dark Mode

Intune Platform Script · Forces system-wide dark mode via registry for the logged-on user
Writes to HKCU — must run as the logged-on user. Takes effect immediately; no reboot needed. Won't apply to new user accounts until they log in and the script runs again (assign to user groups, not device groups).
Script
Set dark mode for apps and system shell registry
Two keys: one flips apps, one flips the taskbar/Start/shell. Both need to be 0 for full dark.
# Enable system-wide dark mode $path = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" Set-ItemProperty -Path $path -Name "AppsUseLightTheme" -Value 0 -Type DWord -Force Set-ItemProperty -Path $path -Name "SystemUsesLightTheme" -Value 0 -Type DWord -Force
Intune Platform Script Settings
Run this script using the logged on credentials Yes
Enforce script signature check No
Run script in 64-bit PowerShell host Yes