Task Scheduler to wake from sleep

Page 3 of 7 FirstFirst 12345 ... LastLast

  1. Posts : 1,448
    Windows 10
    Thread Starter
       #21

    Try3 said:
    From studying the xml
    1 That's not the task you posted about before.
    2 This task's Action has no arguments. Do you get the same error message?
    3 All mine have the entry
    <LogonType>InteractiveToken</LogonType>
    whilst yours has
    <LogonType>Password</LogonType>
    I have never seen that before and do not know what it means.


    From test runs [with modified Action & with <UserId> line removed as is normal when using somebody else's Task definition]
    NYD


    Denis
    I changed the Action to Notepad for the test I ran, and yes I got the error originally.

    The one posted in the xml file was the original that I set up without running as Administrator, done of the others would save because of the error.
      My Computer


  2. Posts : 4,187
    Windows 11 Pro, 22H2
       #22

    Denis,

    I think that I have some clue on what "InteractiveToken" is because it's related to something I am interested in and have been experimenting with on a limited basis so far.

    I'm going to show a screenshot here. This comes from Win 11 so it may look a little different in Windows 10:

    Task Scheduler to wake from sleep-image1.jpg

    Note that I have the option enabled that is called "Use my sign-in info to automatically finish setting up after an update". Having this enabled does something pretty interesting. After a reboot or restart, it will actually log you on, but it does so using a special token. It's almost instant. It logs you on and then immediately locks the screen. It's kind of like you logging on and then locking the screen immediately. You can recognize when this happens because you will see your lock screen displayed rather than the logon screen. Also, if you were to try to shut down from that screen it would warn you that a user is logged on.

    The whole idea is that if you have performed updates, this will log you on and finish setting up those updates so that when you come back to the system, it's all done already.

    I use this to my advantage on a Plex server. Plex won't run on Windows until you log on. But if you have this option enabled, then you do not need to log on. You will get logged on automatically when you boot the system.

    This is somewhat like an autologon, except that it instantly locks the screen and there are some circumstances under which it won't auto sign-in. I can't recall, I have to check, it might be something like if you do a shutdown from a Remote Desktop session or something like that it won't work.

    Anyway, my suspicion is that this may be what this token is about.
      My Computers


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

    rboppy said:
    Didn't say it allowed .zip....
    I'm concerned about where you are looking.
    How to Upload and Post Screenshots and Files - TenForumsTutorials
    Task Scheduler to wake from sleep-allowed-file-types.png


    Denis
      My Computer


  4. Posts : 16,956
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #24

    Hannes,

    Interactive token is what I know about.
    It's his Password entry that I have not seen before.

    Windows 10 also has that use my sign-in blah, blah, blah but I don't use it.
    It's a digression but I'll search my notes because I remember somebody identifying an awkward side effect of using it.
    Found the note - Settings, Accounts, Sign-in, Use my sign-in info affects TS login trigger - tasks run before login - mfran2002 posts TenForums
    @hsehestedt


    Denis
    Last edited by Try3; 13 Feb 2024 at 18:15.
      My Computer


  5. Posts : 1,448
    Windows 10
    Thread Starter
       #25

    Try3 said:
    I'm concerned about where you are looking.
    How to Upload and Post Screenshots and Files - TenForumsTutorials
    Task Scheduler to wake from sleep-allowed-file-types.png


    Denis
    Didn't go to the tutorial,

    Task Scheduler to wake from sleep-choose-file.png
      My Computer


  6. Posts : 16,956
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #26

    rboppy said:
    The one posted in the xml file was the original that I set up without running as Administrator, done of the others would save because of the error.
    So exactly what is the difference between what you want to do and what you have in that xml?

    At what stage did you see the error message? When you altered the task & tried to save it OR when trying to run the task?

    You just wrote, "running as Administrator". To achieve that you need to
    - Start Task scheduler itself whilst logged in to an Admin account and giving Admin permission to run TS.
    - On the task's General tab
    - - Check that an Admin account's name is in the use the following account box
    - - Set Run only when user is logged on
    - - Set Run with highest privileges


    Denis
      My Computer


  7. Posts : 1,448
    Windows 10
    Thread Starter
       #27

    Try3 said:
    So exactly what is the difference between what you want to do and what you have in that xml?

    At what stage did you see the error message? When you altered the task & tried to save it OR when trying to run the task?

    You just wrote, "running as Administrator". To achieve that you need to
    - Start Task scheduler itself whilst logged in to an Admin account and giving Admin permission to run TS.
    - On the task's General tab
    - - Check that an Admin account's name is in the use the following account box
    - - Run only when user is logged on
    - - Run with highest privileges

    Denis
    What I want to do is start the computer before I go into the workshop, so Windows will get all it startup chores completed by the time I go down there. The action I choose is one I use all the time but it could be anything.

    Jims-shop is an administrator

    I will check tomorrow on the other conditions to see what happens.

    Thanks all for your help and suggestions.
      My Computer


  8. Posts : 16,956
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #28

    Well, if it's any encouragement, my wake-up-the-computer task runs reliable every morning.
    I get woken up by WMP playing Satchmo's On the sunny side of the street, La vie en rose & What a wonderful world.


    Denis
      My Computer


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

    rboppy said:
    What I want to do is start the computer ...
    I'm sure it's what you meant anyway but what I expected you to write was
    What I want to do is wake the computer ...

    By the way, hibernation can a bit more reliable than sleep in that a momentary loss of power does not bother hibernation but would crash a computer that was sleeping.


    All the best,
    Denis
      My Computer


  10. Posts : 43,014
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #30

    Here's what works for me:

    In post #9 I suggested the last option on the page I linked- a tiny freeware program, with various options - even a manual.
    Task Scheduler to wake from sleep-1.jpg

    Try it..
      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 03:37.
Find Us




Windows 10 Forums