Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 118113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:26:36+00:00 2026-05-11T03:26:36+00:00

I am trying to write a system restart Task for Windows Vista. I’m a

  • 0

I am trying to write a system restart Task for Windows Vista. I’m a web developer by trade so I’m a little out of my element here. I have got into my OS and discovered Task Scheduler.

So far I’ve been able to set up some various tasks to run small WPF programs by calling the *.exe files. What I really need to do is set up a system restart at a specific time. 1 a.m. for example.

Is there a way to write a simple shell script that will force restart Windows Vista as a scheduled task?

My concern is that Vista typically asks to shut down programs when you hit restart, so I would want to make sure that it really is automatic requiring zero user interaction.

Any help, or links to examples would be greatly appreciated.

System: Windows Vista 32bit

Cheers, Ryan

Answer: Copy and Paste the code in the selected answer to a text file.

shutdown -r -f -t 01 

Save the file as a *.bat file. You can then select it in the Actions Tab of the Task Scheduler. Works like a charm.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:26:36+00:00Added an answer on May 11, 2026 at 3:26 am

    Execute

    shutdown -r -f -t 01

    will restart windows in 1 second.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write Unicode characters (♠) using System.out , and a question mark
I'm trying to write a file system iterator as a simple Windows Application. I
I'm trying to write an extension method for System.Web.UI.Control which will search its ControlCollection
I'm trying to write a plugin system to provide some extensibility to an application
I'm trying to write a commenting system, where people can comment on other comments,
I am trying to write a reward system wherein users will be given reward
I'm trying to write a callback event system in DirectX9. I'm attempting to use
I am trying to write a local program management and install system for my
I'm trying to write a drop-in replacement for System.Media.SoundPlayer using the waveOut... API. This
I am having trouble with XMLTextWriter.WriteStartElement throwing an exception: System.InvalidOperationException when trying to write

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.