I want to configure restart of windows server 2003 using admin account. Can anyone suggest how to restart windows server using admin credentials.
1 Answer
I will give you teh codez because I am shameless:
schtasks /create /RU DOMAIN\administrator /RP PASSWORD /SC Once /SD 06/28/2014 /ST 03:00 /TN Reboot /tr "C:\WINDOWS\system32\shutdown -r -t 1 -f"
Replace the DOMAIN\Administrator
with the appropriate Administrator account and PASSWORD
with the appropriate password.
-
2OH MY GOD WHAT IS THAT DATE FORMAT? Please tell me Windows accepts formats other than Merkin Time.– MikeyBJun 27, 2014 at 14:45
-
1@MikeyB I wouldn't be surprised if the date format depended on the current culture in use. In fact, my Australian system says
dd/mm/yyyy
.– BobJun 27, 2014 at 14:47 -
1@MikeyB - It is based on your regional settings. I wish it just took ISO-standard time... Grrr... Jun 27, 2014 at 14:50
shutdown.exe
that you can use to accomplish this. Why don't you go Google it and teach yourself how to use it to do what you need. You'll learn something and become a better system administrator. In addition, we don't doI can has the codez?
here.