# Define the path for the registry key
$registryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"
# Create the registry key if it does not exist
if (-not (Test-Path $registryPath)) {
New-Item -Path $registryPath -Force | Out-Null
}
# Set the registry values for dark mode
Set-ItemProperty -Path $registryPath -Name "AppsUseLightTheme" -Type DWord -Value 0
Set-ItemProperty -Path $registryPath -Name "SystemUsesLightTheme" -Type DWord -Value 0
# Restart Windows Explorer to apply changes
Stop-Process -Name explorer -Force
Start-Process explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
naldodj/naldodj-windows-sandbox-dark-theme
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published