1. Joined : Oct 2015
    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 System SpecsSystem Spec


  2. Joined : Jan 2015
    UK, Midlands
    Posts : 6,522
    Win 10 Pro (1607)
       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 System SpecsSystem Spec


  3. Joined : Feb 2015
    Bamberg Germany
    Posts : 12,891
    Microsoft Windows 10 Pro 64-bit 14393 Multiprocessor Free
       07 Oct 2015 #3

    Click image for larger version. 

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


  4. Joined : Jan 2015
    UK, Midlands
    Posts : 6,522
    Win 10 Pro (1607)
       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 System SpecsSystem Spec


  5. Joined : Feb 2015
    Bamberg Germany
    Posts : 12,891
    Microsoft Windows 10 Pro 64-bit 14393 Multiprocessor Free
       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 System SpecsSystem Spec


  6. Joined : Oct 2015
    Posts : 2
    Windows 10 64-bit
       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 System SpecsSystem Spec


  7. Joined : Feb 2015
    Bamberg Germany
    Posts : 12,891
    Microsoft Windows 10 Pro 64-bit 14393 Multiprocessor Free
       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 System SpecsSystem Spec


  8. Joined : Jan 2015
    UK, Midlands
    Posts : 6,522
    Win 10 Pro (1607)
       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 System SpecsSystem Spec


 


Similar Threads
Thread Forum
Script or command to update time
I would like to update the time once a day by way of the Task Scheduler. Is there a command to do this?
General Support
w10, Script Error
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...
General Support
Script Problem
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?
General Support
Pop up and clicking ok... following script error
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" ...
General Support
Can Someone Help me Write a Script
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...
General Support
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 23:56.
Find Us
Twitter Facebook Google+



Windows 10 Forums