Windows 10: Start An EXE Minimized After Wake Up From Hibernate In Task Scheduler

Discus and support Start An EXE Minimized After Wake Up From Hibernate In Task Scheduler in Windows 10 Software and Apps to solve the problem; Hello, I want to start an EXE program Minimized, or better yet, hidden (so I don't see its program in the Taskbar) only when the computer comes back... Discussion in 'Windows 10 Software and Apps' started by pepanee, Aug 13, 2016.

  1. pepanee Win User

    Start An EXE Minimized After Wake Up From Hibernate In Task Scheduler


    Hello, I want to start an EXE program Minimized, or better yet, hidden (so I don't see its program in the Taskbar) only when the computer comes back from Hibernate. (This EXE file does the command to delete the hiberfil.sys file.) It only runs for a split second, yet I don't want to see it on the screen when it opens and closes.

    How can I do that please?

    Thanks

    :)
     
    pepanee, Aug 13, 2016
    #1

  2. presentation

    This is not entirely trivial. If your BIOS supports a timed turn-on then you can do this:

    • Use the Task Scheduler to launch PowerPoint at logon time.
    • Use the Task Scheduler to run this command to shut the machine down at hibernation time:

      shutdown /F /S /t:3

    If your BIOS does not support a timed turn-on then you can do this:

    • Use the Task Scheduler to launch PowerPoint at logon time.
    • Use the Task Scheduler to run these batch file commands with the highest privileges at sleep time:

      powercfg -h off

      rundll32.exe powrprof.dll,SetSuspendState 0,1,0

      powercfg -h on
    • Use the Task Scheduler to wake Windows up at wake-up time.
     
    Frederik Long, Aug 13, 2016
    #2
  3. UpdateOrchestrator Reboot task bug

    Hello,

    I've disabled the group policy of "Enabling Windows update power management to automatically wake up the system to install scheduled updates" in the hope of stopping my computer from waking up from hibernate - it's a fairly loau desktop so it waking up
    means I wake up.

    Disabling this policy changed the Reboot task to run a action of "Schedule Restart" - but that task still has the flag set to enable it to wake up the computer. So in affect, it wakes up my desktop to ask me when to schedule a restart... great.

    I've tried writing a powershell script which fires on hibernate and disables this specific task, but seemingly it only works some of the time.

    Editing the reboot task does not work, it must get routinely deleted / recreated by windows.

    It seems like an immensely stupid condition to have, and I can't imagine I'm the only one with a desktop in my room.

    Microsoft - please can I have *some* power back...

    Anyone got any sure fire methods of killing this task for good?
     
    marlon_tucker, Aug 13, 2016
    #3
  4. dalchina New Member

    Start An EXE Minimized After Wake Up From Hibernate In Task Scheduler

    Hello, I will answer part of your question, and suggest options for running minimised.
    Considering the task scheduler:
    This is the trigger event you need to specify:

    Start An EXE Minimized After Wake Up From Hibernate In Task Scheduler [​IMG]


    I can't think why you'd want to delete the file unless you're desperately short of disk space...?

    You can launch a file minimised from the task scheduler:
    How to run a batch file or other file minimized

    You can use Autohotkey (free scripting tool) to launch it minimised

    Start An EXE Minimized After Wake Up From Hibernate In Task Scheduler [​IMG]


    I'm assuming you already have a program that deletes hiberfil.sys
     
    dalchina, Aug 13, 2016
    #4
  5. pepanee Win User
    Hello Panda Bear =)

    So I saw your first post before you edited it with the picture. I made the Task just like that in Task Scheduler and it actually WORKED!! Thank you so much. I Hibernated the computer, then turned it back on and unlocked the computer, and it went straight to the Desktop (how I had it before I Hibernated it) and no cmd window screen (the exe) showed up! It was hidden.

    The reason why I don't want that file is because it is just useless space sitting on the Hard Drive. I won't be running low on Disk space at all because I use backup drives for storage; I just like to keep the Local Drive as clean as possible from clutter (files that are useless for me).

    Also it's a cool little idea that I'm surprised that Microsoft hasn't yet implemented. (The only hold back is if you are running very low on disk space, then asking the computer to Hibernate would be difficult because there won't be enough space to create the hiberfil.sys file. You see, I have a little set up that when I press the Hibernate option, the computer creates the hiberfil.sys and Hibernates.)


    (I use a program called Macro Express for other projects, it's kinda similar to AutoKey, yet a bit more complex. But thanks for that suggestion as well)
     
    pepanee, Aug 13, 2016
    #5
  6. cereberus Win User
    Seems a long winded way to use an exe file when simply using following from an admin command prompt

    powercfg - h off

    does the job.

    Frankly, I just do not see point of doing this anyway just to save a couple of GB. By deleting it, you create the problem of not having enough disk space to create it when low on storage memory- it would be there if you did not delete it.
     
    cereberus, Aug 13, 2016
    #6
  7. dalchina New Member
    @Cerberus- personally I'd agree and never delete it. But I thought better to give an answer.. rather than question the objective. I already knew what the task trigger was as I've used that for a long time- originally that took quite a while to identify. That command turns hibernate off (and so deletes the file)- which isn't what the OP was asking.
     
    dalchina, Aug 13, 2016
    #7
  8. cereberus Win User

    Start An EXE Minimized After Wake Up From Hibernate In Task Scheduler

    Sure but running again with on parameter turns it back on which I did not make clear. As I understand it, OP recreates hibernate n file on demand when closing down pc.

    My point was that deleting file to save space but still wanting ability to hibernate on demand can create issue when storage memory is low.

    Just seems to me to be messy and if pc crashed, would it get confused deleting his way thinking it had a hibernation file etc.

    I have ended up with corrupt hibernation files, missing hibernation files in past.

    Stil as you say OP's choice but I do not think it harms to ask why sometimes.
     
    cereberus, Aug 14, 2016
    #8
  9. pepanee Win User
    That's exactly it. As of right now, there is no Hibernate file on the Local Drive.
    1) If I want to Hibernate the computer, I click Hibernate. I have a command that creates the Hibernate file, on demand, whenever I press Hibernate.
    2) If I shut down the computer, no Hibernate file gets created. So when I start up the computer, no Hibernate file will attempt to be deleted.
    3) Assuming I pressed Hibernate, that file is now created and the computer hibernates. Once I start the computer back up, that Hibernate file gets deleted.
    4) I have a solid state drive, which means that this file gets created quickly and gets deleted quickly. (I am aware that over a long period of time, this might slightly damage the hard drive, yet I rarely use Hibernate, so no worries)
    5) Assuming anything messes up, I am aware of methods of starting up the computer 'alternatively' (Safe Mode, alternate Operating System, etc...) I got a lot of computer fixing experience.

    Just to clear up the confusion that I read earlier after I marked the post as solved, this is my preference and I want the computer to do this. I really appreciate the person who helped me out and other comments

    Thanks
     
    pepanee, Apr 5, 2018
    #9
Thema:

Start An EXE Minimized After Wake Up From Hibernate In Task Scheduler

Loading...
  1. Start An EXE Minimized After Wake Up From Hibernate In Task Scheduler - Similar Threads - Start EXE Minimized

  2. Task scheduler restart issue after wake up from hibernation

    in Windows 10 Gaming
    Task scheduler restart issue after wake up from hibernation: Hello,I have task schedule one for win11 pc hibernation at 00:01 tested 23:59, too and another schedule to restart pc at 9:00 o'clock. Pc just won't to restart after wake up from hibernation. If I run both schedules with run command or I set different time option within ie 2...
  3. Task scheduler restart issue after wake up from hibernation

    in Windows 10 Software and Apps
    Task scheduler restart issue after wake up from hibernation: Hello,I have task schedule one for win11 pc hibernation at 00:01 tested 23:59, too and another schedule to restart pc at 9:00 o'clock. Pc just won't to restart after wake up from hibernation. If I run both schedules with run command or I set different time option within ie 2...
  4. Task scheduler wakes from sleep/hibernation but PC then goes back to sleep/hibernation

    in Windows 10 Performance & Maintenance
    Task scheduler wakes from sleep/hibernation but PC then goes back to sleep/hibernation: Hi,I have a HP EliteBook 840 G1 with Windows 10.I am looking to put my laptop to sleep/hibernation each night at a set time. Then the scheduler will wake the PC at a set time and run a .bat file. The Windows scheduler wakes the PC fine but after a few minutes it goes back to...
  5. Task scheduler wakes from sleep/hibernation but PC then goes back to sleep/hibernation

    in Windows 10 Gaming
    Task scheduler wakes from sleep/hibernation but PC then goes back to sleep/hibernation: Hi,I have a HP EliteBook 840 G1 with Windows 10.I am looking to put my laptop to sleep/hibernation each night at a set time. Then the scheduler will wake the PC at a set time and run a .bat file. The Windows scheduler wakes the PC fine but after a few minutes it goes back to...
  6. Task scheduler wakes from sleep/hibernation but PC then goes back to sleep/hibernation

    in Windows 10 Software and Apps
    Task scheduler wakes from sleep/hibernation but PC then goes back to sleep/hibernation: Hi,I have a HP EliteBook 840 G1 with Windows 10.I am looking to put my laptop to sleep/hibernation each night at a set time. Then the scheduler will wake the PC at a set time and run a .bat file. The Windows scheduler wakes the PC fine but after a few minutes it goes back to...
  7. Problem with auto start from hibernation using Task Scheduler

    in Windows 10 Support
    Problem with auto start from hibernation using Task Scheduler: With my Win 7 system, running on a desk-top, I have successfully configured Task Scheduler to restart from hibernation at a specified time of day. This works fine - the computer powers up and already loaded programs continue functioning. Problem is that with a Windows 10...
  8. Find "Wake up from sleep" Scheduled Tasks

    in Windows 10 Performance & Maintenance
    Find "Wake up from sleep" Scheduled Tasks: Other than going through each and every task in the task scheduler, is there a way to see those that are allowed to wake the machine while it is sleeping? My PC woke up this morning at 3:30 am. It then went back to sleep about ten minutes later. I've checked all of the normal...
  9. Scheduled Task not waking up PC.

    in Windows 10 Support
    Scheduled Task not waking up PC.: Hello, I have made a scheduled task with the option to wake up the pc from sleep state to run a program. When I tick the option Wake the computer to run this task the computer won't wake up at the given time. I have red in a forum of MS that this was a problem in the...
  10. Schedule wake up from sleep (not using task scheduler)

    in Windows 10 Support
    Schedule wake up from sleep (not using task scheduler): HiI have tried using windows task scheduler to sleep and wake up at different times but it does not work. I am using a Linx 1010 tablet. Windows 10Would anyone know if there any third party app, or any other way to do this task?Many thanks 92480

Users found this page by searching for:

  1. unhibernate event scheduled task script