<FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <Description>Set Windows and Apps to Dark Mode</Description> <CommandLine>powershell.exe -ExecutionPolicy Bypass -Command "& { $reg='HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize'; Set-ItemProperty -Path $reg -Name AppsUseLightTheme -Value 0; Set-ItemProperty -Path $reg -Name SystemUsesLightTheme -Value 0 }"</CommandLine> </SynchronousCommand>
</FirstLogonCommands>