1.    06 Oct 2015 #1
    Join Date : Oct 2015
    Posts : 2
    Windows 10 64-bit

    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
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,129
    Win 10 Pro (1703)

    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.    07 Oct 2015 #3
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 18,015
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    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
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,129
    Win 10 Pro (1703)

    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.    07 Oct 2015 #5
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 18,015
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    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.    08 Oct 2015 #6
    Join Date : Oct 2015
    Posts : 2
    Windows 10 64-bit
    Thread Starter

    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.    08 Oct 2015 #7
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 18,015
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    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
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,129
    Win 10 Pro (1703)

    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

 


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 18:09.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums