'Issue using The Task Scheduler with cmd

Can Windows 10 The Task Scheduler run Reg.exe commands from command prompt?

When I past this command to make changes in reg.exe in CMD -- its works! But not works at Task Scheduler!

Reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "SystemUsesLightTheme" /t REG_DWORD /d "0" /f"

able to scheduler but not work command line (trying scheduler work at 18 PM)

schtasks /create /sc daily /tn "Tema" /tr "Reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "SystemUsesLightTheme" /t REG_DWORD /d "0" /st {hora} /f

deleting command thas works too

schtasks /delete /tn "Tema" /f

I able to Create and Delete it as well, but I can't make it runs appropriately from Task Scheduler -- nothing happens!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source