Windows 10: PC Shutdown script does not work


  1. Posts : 2
    Windows 10 64-bit
       06 Oct 2015 #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 ComputerSystem Spec

  2.    07 Oct 2015 #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 ComputerSystem Spec


  3. Posts : 14,928
    Microsoft Windows 10 Pro 64-bit 14393, Windows 10 Insider Fast Ring, Windows 8.1 Update, Ubuntu
       07 Oct 2015 #3

    Click image for larger version. 

Name:	Image 001.png 
Views:	3 
Size:	41.0 KB 
ID:	41580
      My ComputersSystem Spec

  4.    07 Oct 2015 #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 ComputerSystem Spec


  5. Posts : 14,928
    Microsoft Windows 10 Pro 64-bit 14393, Windows 10 Insider Fast Ring, Windows 8.1 Update, Ubuntu
       07 Oct 2015 #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 ComputersSystem Spec


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

    Thank you so much for reactions!
    Click image for larger version. 

Name:	Bez názvu.png 
Views:	1 
Size:	33.5 KB 
ID:	41747
    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 ComputerSystem Spec


  7. Posts : 14,928
    Microsoft Windows 10 Pro 64-bit 14393, Windows 10 Insider Fast Ring, Windows 8.1 Update, Ubuntu
       08 Oct 2015 #7

    Instead of "AT" you need to run "schtasks" or scheduled tasks
    Click image for larger version. 

Name:	Image 001.png 
Views:	1 
Size:	24.0 KB 
ID:	41749
      My ComputersSystem Spec

  8.    09 Oct 2015 #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 ComputerSystem Spec


 

Related Threads
I would like to update the time once a day by way of the Task Scheduler. Is there a command to do this?
w10, Script Error in General Support
Why suddenly " Script Error " appears continuously when I try to close an IE page? asking to choose "use script Yes or NO". & either clicked gives an blank page & have difficulty closing it. I tried Tools>Advanced & "disable script errors" is...
Script Problem in General Support
I am a novice computer user and am having trouble with an error message that says long running script problem. How do I solve this?
I installed upgrade Window 10 on my Window 7 ultimate... now a Pop up opens asking open following programs.. 1,2,3 etc... Clicking ok I get error. Can not find script "C:\ProgramData\{F7A61F65-A724-CEE3-16A2-BE61C6206DEF}\1.9.2.1\FIBER.JS" ...
I use an old kvm switch without active ddc so I am always having to open screen resolution settings and click detect. I would like to make a script file and then a shortcut to the file to do this for me but I have never written a script and can't...
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 09:33.
Find Us