T
That Human
The subject says it all - I want to be able to run a command, that activates/deactivates Night Light through cmd/bat.
I found a code that detects operating systems, and I made it seperate the choices between
"True" (Windows 10) and "False"(Other).
The marked *ACTIVATION CODE* is where I want the code to apply.
for /f "tokens=2 delims=," %%i in ('wmic os get caption^,version /format:csv') do set os=%%i
echo %os%|find " 10 ">nul &&goto win10||goto other
:win10
color 0a
echo Windows 10 Activating Night Light
echo *THE ACTIVATION CODE*
goto renew
ther
color 0f
echo Classic View
goto NEW
I asked Microsoft Support the first time, and I was provided with a registry code, not knowing how I execute it, neither does my computer.
It goes like this;
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.bluelightreductionstate]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.bluelightreductionstate\Current]
"Data"=hex:02,00,00,00,26,a9,0c,cc,2b,d3,d2,01,00,00,00,00,43,42,01,00,c6,14,\
ad,99,b0,e0,bc,e5,b4,e9,01,00
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.settings]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.settings\Current]
"Data"=hex:02,00,00,00,e4,cb,20,ce,2b,d3,d2,01,00,00,00,00,43,42,01,00,ca,14,\
0e,15,00,ca,1e,0e,07,00,ca,32,0e,14,2e,22,00,ca,3c,0e,06,2e,16,00,00
I asked again, and I was told that there was no such code, and that I had to ask here.
ANY help would be greatly appreciated - Thanks in advance.
Continue reading...
I found a code that detects operating systems, and I made it seperate the choices between
"True" (Windows 10) and "False"(Other).
The marked *ACTIVATION CODE* is where I want the code to apply.
for /f "tokens=2 delims=," %%i in ('wmic os get caption^,version /format:csv') do set os=%%i
echo %os%|find " 10 ">nul &&goto win10||goto other
:win10
color 0a
echo Windows 10 Activating Night Light
echo *THE ACTIVATION CODE*
goto renew
ther
color 0f
echo Classic View
goto NEW
I asked Microsoft Support the first time, and I was provided with a registry code, not knowing how I execute it, neither does my computer.
It goes like this;
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.bluelightreductionstate]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.bluelightreductionstate\Current]
"Data"=hex:02,00,00,00,26,a9,0c,cc,2b,d3,d2,01,00,00,00,00,43,42,01,00,c6,14,\
ad,99,b0,e0,bc,e5,b4,e9,01,00
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.settings]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.settings\Current]
"Data"=hex:02,00,00,00,e4,cb,20,ce,2b,d3,d2,01,00,00,00,00,43,42,01,00,ca,14,\
0e,15,00,ca,1e,0e,07,00,ca,32,0e,14,2e,22,00,ca,3c,0e,06,2e,16,00,00
I asked again, and I was told that there was no such code, and that I had to ask here.
ANY help would be greatly appreciated - Thanks in advance.
Continue reading...