Install Auto Dark Mode from https://github.com/AutoDarkMode/Windows-Auto-Night-Mode by using a command prompt with administrative rights and then run: Open Auto Dark Mode (use Windows Search) and configure it to your liking.

Start a command prompt with administrative privileges, then run If the result shows that corrupted files were found run one of these checks: Fix the corrupted files:

Open the command prompt with administrative rights, then run one of these: