how to execute a batch when computer is on IDLE

Page 2 of 7 FirstFirst 1234 ... LastLast

  1. Posts : 1,211
    Windows 10
       #11

    m18xr2 said:
    I find that having it on too long causes bluescreen which something I gave up on troubleshooting as I tried LAN, 5 different WLAN adapters/pcie card alike, and like 4-5 drivers per adapters (25-30 different drivers).
    25-30 different drivers? suspicion would state that there is room for error here, where did you get all these drivers? Blue screen? yeah high probability. Blue screen in this case is high chance that it will be a driver problem given that you are describing intermittent hardware.

    Check event logs for your adapters, snap in a event log from device manager when viewing the properties for the internet adapter in question in DM. I don't think tailoring a solution like you are asking is the right line of thinking because the problem is still there you are just trying to band aid it.

    Make sure that the adapter is set to not go to sleep either when "Allow this device to sleep"
      My Computer


  2. Posts : 181
    10, server 2016, server2012
    Thread Starter
       #12

    Malneb said:
    25-30 different drivers? suspicion would state that there is room for error here. Blue screen?
    this isn't some run of the mill random driver test, its with fresh install of windows prior to installing network drivers, then I backup by making an image. install a driver, test it for several days up to 2 weeks at time with my normal activities, if it crash I restore to the fresh installed image with no residue from previous driver.

    Malneb said:
    Make sure that the adapter is set to not go to sleep either when "Allow this device to sleep"
    this is off on all of the test

    Malneb said:
    where did you get all these drivers?
    intel's WLAN card from intel's website, or from my laptop vender website directly.

    the LAN driver theres only several ones. older vers, new vers all from vender's site or the actual manufacture's site. I find the chip, find the corresponding driver if they have them.

    for other WLAN adapters, since venders dont support (such as external USB ones) I install drivers that came with them, or find updated versions.

    all of which is over the course of maybe 3-4 years of test and im defeated at this point. either getting a new computer or I find a workaround.
      My Computer


  3. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #13

    I've also got some thoughts on investigating the main problem but I'd prefer to help you get the workaround done first.
    Have you set up the TS task with its Idle trigger?


    Best of luck,
    Denis
      My Computer


  4. Posts : 181
    10, server 2016, server2012
    Thread Starter
       #14

    Try3 said:
    I've also got some thoughts on investigating the main problem but I'd prefer to help you get the workaround done first.
    Have you set up the TS task with its Idle trigger?


    Best of luck,
    Denis
    yes, currently setting it up and under testing. unfortunately I forgot I did this 2 nights ago to check the up-time for the adapter to see if it had reset while I was sleeping. I rebooted this morning due to uninstalling some program and should have checked before. but will monitor it by tomorrow morning.
      My Computer


  5. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #15

    I don't know how you like to monitor such things but you could consider enabling Task scheduler task history or adding in a line to the batch line to write to a log
    e.g.
    echo %date% %time% >>C:\Users\%UserName%\Desktop\NetworkAdapterReset.log


    Denis
      My Computer


  6. Posts : 181
    10, server 2016, server2012
    Thread Starter
       #16

    Try3 said:
    I don't know how you like to monitor such things but you could consider enabling Task scheduler task history or adding in a line to the batch line to write to a log
    e.g.
    echo %date% %time% >>C:\Users\%UserName%\Desktop\NetworkAdapterReset.log


    Denis
    so it looks like idle doesnt seem to work correctly. I was watching a movie with VLC constantly playing, it would reset my wifi. it also reset during gamign session which disconnected my net for about 5 seconds and reconnected, confirmed both times with taskscheduler's last task run time.

    it seems this task, even if its on idle window just treats it as every couple of hours and the idle thing dont seem to matter..?

    how to execute a batch when computer is on IDLE-abcd.jpghow to execute a batch when computer is on IDLE-abcd2.jpg
      My Computer


  7. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #17

    It sounds like the computer is idle whilst playing a video.
    Perfectly possible.
    TS- Task Idle Conditions MSDN
    What are the criteria that Windows uses to put the system state on idle - Super User
    on idle problems and a retracted explanation - EightForums

    It seems that some further test will need to be inserted into the batch file to help it decide whether to run the resetting commands or not.
    Might a test of being / not being connected to the internet suit the situation?


    Denis
      My Computer


  8. Posts : 181
    10, server 2016, server2012
    Thread Starter
       #18

    Try3 said:
    It sounds like the computer is idle whilst playing a video.
    Perfectly possible.
    TS- Task Idle Conditions MSDN
    What are the criteria that Windows uses to put the system state on idle - Super User
    on idle problems and a retracted explanation - EightForums

    It seems that some further test will need to be inserted into the batch file to help it decide whether to run the resetting commands or not.
    Might a test of being / not being connected to the internet suit the situation?


    Denis
    yea I did read some of those or articles similar to those ones. but what doesnt make sense to me is that my mouse as well as keyboard moving and pressing keystrokes.

    for watching videos, I often press fast forward/backward jump/skip of 3-5 seconds etc, and does this every 5-10 mins or so especially if I miss something.

    for gaming session obviously theres always keyboard + mouse movement nonstop so this doesn't make any sense why it would go think im idling when im actually not.
      My Computer


  9. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #19

    m18xr2 said:
    my mouse as well as keyboard moving and pressing keystrokes
    Oh.
    In that case idle shouldn't be triggered at all.

    Can we assume, for the time being, that TS's idle trigger does not work properly and that some other solution would be required?
    If you detected that you were connected to a network [a condition that TS can check] but it wasn't working properly [could not actually access a website], would that accurately describe your problem? If so, we could build on that idea.


    Denis
      My Computer


  10. Posts : 181
    10, server 2016, server2012
    Thread Starter
       #20

    Try3 said:
    Oh.
    In that case idle shouldn't be triggered at all.

    Can we assume, for the time being, that TS's idle trigger does not work properly and that some other solution would be required?
    If you detected that you were connected to a network [a condition that TS can check] but it wasn't working properly [could not actually access a website], would that accurately describe your problem? If so, we could build on that idea.

    Denis
    theres internet traffic, a qutie a bit of them during gaming. lots of CPU/GPU load too, not to mention keystroke and mouse moving. honestly im not sure what else to do at this point.
      My Computer


 

  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 11:06.
Find Us




Windows 10 Forums