?
Solved

make windows automatically restart

Posted on 2011-10-24
8
Medium Priority
?
280 Views
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.
0
Comment
Question by:Ikelca
  • 5
  • 2
8 Comments
 
LVL 18

Expert Comment

by:Andrej Pirman
ID: 37021676
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:
http://www.bleepingcomputer.com/tutorials/windows-program-automatic-startup-locations/
0
 

Author Comment

by:Ikelca
ID: 37021788
yes, i understand about restart and logon and i do need it restart automatically without logon.

http://www.bleepingcomputer.com/tutorials/windows-program-automatic-startup-locations/
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
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
0
 
LVL 18

Expert Comment

by:Andrej Pirman
ID: 37021809
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
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

Author Comment

by:Ikelca
ID: 37021951
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??
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 37022169
"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.....
0
 

Author Comment

by:Ikelca
ID: 37022237
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
0
 

Accepted Solution

by:
Ikelca earned 0 total points
ID: 37022271
it's ok
i found a solution which is adding scheduled task
thanks guys
0
 

Author Closing Comment

by:Ikelca
ID: 37049340
found solution myself
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

807 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