-2

I want to configure restart of windows server 2003 using admin account. Can anyone suggest how to restart windows server using admin credentials.

6
  • Your question is not clear. First, what server? 2008r2 or 2003? Second, what do you mean "configure"? script? scheduled task? restart your server from the start menu?
    – EliadTech
    Jun 27, 2014 at 9:53
  • It is Windows server 2003. I need to schedule a task to restart server with admin credentials.
    – Jitendra
    Jun 27, 2014 at 12:06
  • 1
    There's a built in program named 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 do I can has the codez? here.
    – joeqwerty
    Jun 27, 2014 at 14:04
  • 2
    @joeqwerty - I cannot support advising posters to teach themselves because I need rep. >smile< I am losing to ewwhite and not at all pleased about it. Jun 27, 2014 at 14:52
  • 1
    I'll sidetrack him with an obscure problem while you answer as many other questions as you can!
    – joeqwerty
    Jun 27, 2014 at 14:54

1 Answer 1

4

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.

3
  • 2
    OH MY GOD WHAT IS THAT DATE FORMAT? Please tell me Windows accepts formats other than Merkin Time.
    – MikeyB
    Jun 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.
    – Bob
    Jun 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

Not the answer you're looking for? Browse other questions tagged .