make windows automatically restart

Posted on 2011-10-24
Last Modified: 2012-05-12
is there a way to run shutdown -r -t 0 without login to restart computer automatically?

i need to restart manually once, then it will restart again automatically without logon.

im looking for a registry key that i can add shutdown command to it

runonce requires logon, which is not what i want.
Question by:Ikelca
    LVL 18

    Expert Comment

    by:Andrej Pirman
    Doing restart prior to login, seems bad idea - windows state is reset only AFTER login, so many changes are not applied if you restart before login. Meaning, only services are set, aplications not.

    But is you know what you want, this is right reading for you - you have all REG keys and startup options explained here:

    Author Comment

    yes, i understand about restart and logon and i do need it restart automatically without logon.
    i have already got to this website before posting here.
    the following keys are the only thing on that website and it dose not work for me as i tested
    LVL 18

    Expert Comment

    by:Andrej Pirman
    Those 2 keys are CORRECT, but they are talking about SERVICES, not programs.
    So your program needs to run as a service, using credentials of user, who has permisisons to "Logon as a service" (look in "Local Security Policy").
    To run program/application as a service, look into, for example, Srvany.exe

    Author Comment

    Labsy, i havent tried ur solution yet, but a question, after service is installed and it will run very time how to automatically uninstall it after 2nd restart??
    LVL 66

    Expert Comment

    "yes, i understand about restart and logon and i do need it restart automatically without logon."

    What part of the startup process do you need it to reboot?

    And I almost have to ask why? I cannot think of a good reason to do this.....

    Author Comment

    ok, the reason is GPO in AD somehow does not get downloaded to local pc and for some reasons, one reboot normally does not do it, most of time, i need to reboot twice.
    troubleshooting AD side will be disaster due to extremely large WLAN

    Accepted Solution

    it's ok
    i found a solution which is adding scheduled task
    thanks guys

    Author Closing Comment

    found solution myself

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
    The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now