The file cannot be run at system startup but can be run manually.


  1. Posts : 7,606
    Windows 10 Home 20H2
       #1

    The file cannot be run at system startup but can be run manually.


    I need to use Task Scheduler to run a .vbs file with highest privileges at system startup.
    The following are my settings. The file is not run at system startup but can be run manually in Task Scheduler. Can anyone help?

    The file cannot be run at system startup but can be run manually.-1.jpgThe file cannot be run at system startup but can be run manually.-2.jpgThe file cannot be run at system startup but can be run manually.-3.jpg
      My Computer


  2. Posts : 68,668
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Mathew, :)

    You might see if using cmd in the Program/script field instead may work better to run the .exe file for SpeedFan in the "Add arguments" field.

    If that still doesn't help, then you could use the method in the tutorial below to create an elevated shortcut of SpeedFan, and place that elevated shortcut in your Startup folder.

    https://www.tenforums.com/tutorials/...dows-10-a.html
      My Computers


  3. Posts : 7,606
    Windows 10 Home 20H2
    Thread Starter
       #3

    I have to run a .vbs file, which includes other codes besides those to run speedfan.exe.
      My Computer


  4. Posts : 7,606
    Windows 10 Home 20H2
    Thread Starter
       #4

    I just found a simple solution: set 'Delay task for' to 1 second under 'Advanced settings'.
    The .vbs file is now run at system startup. I think it is a bug in Task Scheduler because the same problem existed in the following cases:
    Solved Can't Get Task Scheduler To Start a programme on log-on/Startup - Windows 10 Forums
    Solved How to run a program in task scheduler? - Windows 10 Forums
    Autolaunch a program on startup? - Windows 10 Forums
      My Computer


  5. Posts : 68,668
    64-bit Windows 11 Pro for Workstations
       #5

    Great find.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:43.
Find Us




Windows 10 Forums