PC Shutdown script does not work


  1. Posts : 2
    Windows 10 64-bit
       #1

    PC Shutdown script does not work


    Hi,
    I was used to run a script "at 20:30 shutdown -s" in Run.exe to shutdown my laptop at specific time in Windows 7, but in W10, it does not work.

    I tried to run this script in cmd.exe as administrator, but it does not work eather, because in W10 is not possible to give AT order.

    Is there any solution?

    Thank you for your time,

    E.
      My Computer

  2. dalchina's Avatar
    Posts : 30,410
    Win 10 Pro (1903)
       #2

    Hi, I certainly have at.exe in c:\windows\system32, and in a cmd prompt, at /? works.
    Can you confirm that is true for you?
      My Computers

  3. Cliff S's Avatar
    Posts : 25,639
    Win10 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #3

    PC Shutdown script does not work-image-001.png
      My Computers

  4. dalchina's Avatar
    Posts : 30,410
    Win 10 Pro (1903)
       #4

    Thanks Cliff S- I missed the 'deprecated' line- scrolled off the top of the prompt box. (The 'invalid command' relates to using /help rather than /?)
      My Computers

  5. Cliff S's Avatar
    Posts : 25,639
    Win10 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #5

    No problem, I thought the invalid was because I used lower case(too lazy to hold an extra key down:)). at instead of AT.
      My Computers


  6. Posts : 2
    Windows 10 64-bit
    Thread Starter
       #6

    Thank you so much for reactions!
    PC Shutdown script does not work-bez-nazvu.png
    I get this after giving order at /

    - "The Schedule service must be running to use AT command" - I thought this service runs automatically, isn't it? How do I turn it on to run command "at XX:XX shutdown -s"?

    So confused of WIN10

    *doesn't matter about lower/upper case
      My Computer

  7. Cliff S's Avatar
    Posts : 25,639
    Win10 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #7

    Instead of "AT" you need to run "schtasks" or scheduled tasks
    PC Shutdown script does not work-image-001.png
      My Computers

  8. dalchina's Avatar
    Posts : 30,410
    Win 10 Pro (1903)
       #8

    Hi, you might find it significantly easier to use a freeware utility: e.g.
    TimeComX Basic - Free download and software reviews - CNET Download.com
    or
    Wise Auto shutdownhttp://www.majorgeeks.com/files/details/wise_auto_shutdown.html
    (specified to Win 10 by Softpedia)

    - best check to make sure these work in Win 10 (I've used them to schedule hibernation, but not yet in Win 10, I think)
      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 14:38.
Find Us




Windows 10 Forums