Task Scheduler - Simple task will not execute


325xle

Well-known member
Local time
10:44 PM
Posts
51
OS
Windows 11
When Windows starts from either Sleep or Hibernate I want HWMonitor to run as administrator for 7 seconds and then close. I created a batch file to do perform the action. The batch file works. It opens HWMonitor and closes it after 7 seconds.

Scheduler does not start it though. Here are the Trigger and Action screens in Task Scheduler. The file path is correct.

Screenshot (6).webp


Screenshot (5).webp

Screenshot (8).webp
 
Last edited:

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo
    CPU
    See link in Other Info field below.
    Motherboard
    See link in Other Info field below.
    Memory
    See link in Other Info field below.
    Graphics Card(s)
    See link in Other Info field below.
    Sound Card
    See link in Other Info field below.
    Monitor(s) Displays
    See link in Other Info field below.
    Screen Resolution
    See link in Other Info field below.
    Hard Drives
    See link in Other Info field below.
    PSU
    See link in Other Info field below.
    Case
    See link in Other Info field below.
    Cooling
    See link in Other Info field below.
    Keyboard
    See link in Other Info field below.
    Mouse
    See link in Other Info field below.
    Internet Speed
    See link in Other Info field below.
    Browser
    See link in Other Info field below.
    Antivirus
    See link in Other Info field below.
    Other Info
    Link to specs: https://www.lenovo.com/us/en/p/desktops/thinkcentre/m-series-aio/thinkcentre-m90a-pro-gen-4-27-inch-intel/len102c0039#models
1. You need to run it with administrative privileges (This is required by the HWMonitor_x64 program).
2. This is starting

1.webp

2.webp
 
Last edited:

My Computer

System One

  • OS
    Microsoft Windows 11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI MS-7D98
    CPU
    Intel Core i5-13490F
    Motherboard
    MSI B760 GAMING PLUS WIFI
    Memory
    2 x 16 Patriot Memory (PDP Systems) PSD516G560081
    Graphics Card(s)
    GIGABYTE GeForce RTX 4070 WINDFORCE OC 12G (GV-N4070WF3OC-12GD)
    Sound Card
    Bluetooth Аудио
    Monitor(s) Displays
    INNOCN 15K1F
    Screen Resolution
    1920 x 1080
    Hard Drives
    WD_BLACK SN770 250GB
    KINGSTON SNV2S1000G (ELFK0S.6)
    PSU
    Thermaltake Toughpower GF3 1000W
    Case
    CG560 - DeepCool
    Cooling
    ID-COOLING SE-224-XTS / 2 x 140Mm Fan - rear and top; 3 x 120Mm - front
    Keyboard
    Corsair K70 RGB TKL
    Mouse
    Corsair KATAR PRO XT
    Internet Speed
    100 Mbps
    Browser
    Firefox
    Antivirus
    Microsoft Defender Antivirus
    Other Info
    https://www.userbenchmark.com/UserRun/66553205
1. You need to run it with administrative privileges.
2. It probably won't start anyway, try

View attachment 131118
I meant to add this screen.

I thought this is how do it with administrative privileges. Is this incorrect? I am using "cmd.exe" in the Program Script.

Screenshot (9).webp
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo
    CPU
    See link in Other Info field below.
    Motherboard
    See link in Other Info field below.
    Memory
    See link in Other Info field below.
    Graphics Card(s)
    See link in Other Info field below.
    Sound Card
    See link in Other Info field below.
    Monitor(s) Displays
    See link in Other Info field below.
    Screen Resolution
    See link in Other Info field below.
    Hard Drives
    See link in Other Info field below.
    PSU
    See link in Other Info field below.
    Case
    See link in Other Info field below.
    Cooling
    See link in Other Info field below.
    Keyboard
    See link in Other Info field below.
    Mouse
    See link in Other Info field below.
    Internet Speed
    See link in Other Info field below.
    Browser
    See link in Other Info field below.
    Antivirus
    See link in Other Info field below.
    Other Info
    Link to specs: https://www.lenovo.com/us/en/p/desktops/thinkcentre/m-series-aio/thinkcentre-m90a-pro-gen-4-27-inch-intel/len102c0039#models
3.webp
 

My Computer

System One

  • OS
    Microsoft Windows 11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI MS-7D98
    CPU
    Intel Core i5-13490F
    Motherboard
    MSI B760 GAMING PLUS WIFI
    Memory
    2 x 16 Patriot Memory (PDP Systems) PSD516G560081
    Graphics Card(s)
    GIGABYTE GeForce RTX 4070 WINDFORCE OC 12G (GV-N4070WF3OC-12GD)
    Sound Card
    Bluetooth Аудио
    Monitor(s) Displays
    INNOCN 15K1F
    Screen Resolution
    1920 x 1080
    Hard Drives
    WD_BLACK SN770 250GB
    KINGSTON SNV2S1000G (ELFK0S.6)
    PSU
    Thermaltake Toughpower GF3 1000W
    Case
    CG560 - DeepCool
    Cooling
    ID-COOLING SE-224-XTS / 2 x 140Mm Fan - rear and top; 3 x 120Mm - front
    Keyboard
    Corsair K70 RGB TKL
    Mouse
    Corsair KATAR PRO XT
    Internet Speed
    100 Mbps
    Browser
    Firefox
    Antivirus
    Microsoft Defender Antivirus
    Other Info
    https://www.userbenchmark.com/UserRun/66553205
Last edited:

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo
    CPU
    See link in Other Info field below.
    Motherboard
    See link in Other Info field below.
    Memory
    See link in Other Info field below.
    Graphics Card(s)
    See link in Other Info field below.
    Sound Card
    See link in Other Info field below.
    Monitor(s) Displays
    See link in Other Info field below.
    Screen Resolution
    See link in Other Info field below.
    Hard Drives
    See link in Other Info field below.
    PSU
    See link in Other Info field below.
    Case
    See link in Other Info field below.
    Cooling
    See link in Other Info field below.
    Keyboard
    See link in Other Info field below.
    Mouse
    See link in Other Info field below.
    Internet Speed
    See link in Other Info field below.
    Browser
    See link in Other Info field below.
    Antivirus
    See link in Other Info field below.
    Other Info
    Link to specs: https://www.lenovo.com/us/en/p/desktops/thinkcentre/m-series-aio/thinkcentre-m90a-pro-gen-4-27-inch-intel/len102c0039#models
Are you browsing for the batch script because i see from Task Scheduler you are not?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
Are you browsing for the batch script because i see from Task Scheduler you are not?

I changed it. Now I am. Did not work.

It seems like it is the Trigger not being correct.

I even went into Event Viewer to find out the exact Event ID when waking. Using that did not work.
 
Last edited:

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo
    CPU
    See link in Other Info field below.
    Motherboard
    See link in Other Info field below.
    Memory
    See link in Other Info field below.
    Graphics Card(s)
    See link in Other Info field below.
    Sound Card
    See link in Other Info field below.
    Monitor(s) Displays
    See link in Other Info field below.
    Screen Resolution
    See link in Other Info field below.
    Hard Drives
    See link in Other Info field below.
    PSU
    See link in Other Info field below.
    Case
    See link in Other Info field below.
    Cooling
    See link in Other Info field below.
    Keyboard
    See link in Other Info field below.
    Mouse
    See link in Other Info field below.
    Internet Speed
    See link in Other Info field below.
    Browser
    See link in Other Info field below.
    Antivirus
    See link in Other Info field below.
    Other Info
    Link to specs: https://www.lenovo.com/us/en/p/desktops/thinkcentre/m-series-aio/thinkcentre-m90a-pro-gen-4-27-inch-intel/len102c0039#models
Back
Top Bottom