FanControl.Releases icon indicating copy to clipboard operation
FanControl.Releases copied to clipboard

start with windows not working

Open xhul-dev opened this issue 3 years ago • 5 comments

Hello there. Thanks a lot for your work on this software, loving it so far.

Basically, the option does absolutely nothing, and the box is always unchecked when reloading configuration. Nothing gets registered in task scheduler at all. No log.txt is generated whatsoever. I have admin rights, so i highly doubt it's related.

On my machine, only versions 100 to 109 are concerned.

As far as version 99 goes, it behaves a bit strangely : The option in itself works correctly (task registered and working). However, if the option is active when a configuration is loaded, a "Could not load the configuration." error occurs (again, that error doesn't keep the option from doing its job). Here is the associated log.txt data : 31/03/2022 18:35:56: System.ArgumentException: (19,8):UserId: at Microsoft.Win32.TaskScheduler.V2Interop.ITaskFolder.RegisterTaskDefinition(String Path, ITaskDefinition pDefinition, Int32 flags, Object UserId, Object password, TaskLogonType LogonType, Object sddl) at Microsoft.Win32.TaskScheduler.TaskFolder.RegisterTaskDefinition(String path, TaskDefinition definition, TaskCreation createType, String userId, String password, TaskLogonType logonType, String sddl) at FanControl.Domain.WindowsSettings.SetRegisterInStartup(Boolean register, TimeSpan delay) at FanControl.MVVM.ViewModel.SetPropertyAndDo[T](T& property, T value, Action action, String memberName) at FanControl.ViewModels.WindowSettingsViewModel.set_StartupWindows(Boolean value) at FanControl.ViewModels.WindowSettingsViewModel.Restore(SerializableMainWindow state) at FanControl.ViewModels.MainWindowViewModel.RestoreApplicationState(SerializableMainWindow state, IFanCurveProvider1 fanCurveProvider, ICustomSensorProvider1 customSensorProvider) at FanControl.ViewModels.MainWindowViewModel.RestoreApplicationState(SerializableMainWindow state)

Regarding versions 46 to 98, the option seems to work perfectly fine.

Hope it'll help, thanks in advance for your time =]

xhul-dev avatar Mar 31 '22 15:03 xhul-dev

I won't focus on older versions.

image

Do you get that message at all? Basically I set the task, then I fetch it back to make sure the task was created in the task scheduler.

Rem0o avatar Mar 31 '22 18:03 Rem0o

image

Maybe you got an AV or something that's deleting the task?

Rem0o avatar Mar 31 '22 18:03 Rem0o

Thanks for the replies =]

I won't focus on older versions.

image

Do you get that message at all? Basically I set the task, then I fetch it back to make sure the task was created in the task scheduler.

Nope, that message never occurs.

image

Maybe you got an AV or something that's deleting the task?

No AV at all whatsoever on my machine (not even win defender). I suspect the task isn't deleted by anything, something just prevents it from being created.

xhul-dev avatar Mar 31 '22 18:03 xhul-dev

I did a bit of research, and it appears the problem comes from the task scheduler itself, which seems to not digest some admin accounts properly, under (yet) unknown circumstances. In the mean time, i created a tool that bypasses the issue: https://github.com/xhul-dev/FanControl-WinStart

xhul-dev avatar Apr 11 '22 08:04 xhul-dev

I did a bit of research, and it appears the problem comes from the task scheduler itself, which seems to not digest some admin accounts properly, under (yet) unknown circumstances. In the mean time, i created a tool that bypasses the issue: https://github.com/xhul-dev/FanControl-WinStart

This works perfectly - thank you! This has been bugging me for a while.

gumnutTHFC avatar Apr 18 '22 08:04 gumnutTHFC

I did a bit of research, and it appears the problem comes from the task scheduler itself, which seems to not digest some admin accounts properly, under (yet) unknown circumstances. In the mean time, i created a tool that bypasses the issue: https://github.com/xhul-dev/FanControl-WinStart

Thank you for this. Any clue how to make it auto execute setting the profile's fan speeds as well? Cheers!

sherbmeister avatar Apr 11 '23 16:04 sherbmeister