Windows 7 Forums Search


Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7 - Restart Time



Restart Time

How to See What Your Windows 7 Restart Time is
Published by Brink
11-27-2008
Default Restart Time

How to See What Your Windows 7 Restart Time is

information   Information
This will show you how to see how long in seconds it takes your Windows 7 to restart back to the desktop.

You can also view the startup logs in Event Viewer (C:\Windows\system32\eventvwr.msc) under Applications and Services Logs, Microsoft, Windows, Diagnostics-Performance, and Operational. The logs will be in the middle to show you what ran at startup, how long it took, and more.
Note   Note
Credit completely belongs to sidney1st for writing this VBS script.
Tip   Tip
For fun, post your restart time at this link.





Here's How:
1. Click on the download button below to download the Restart-Time.zip file.
download
2. Click on Save, and save the Restart-Time.zip file to the desktop.

3. Open the Restart-Time.zip file and extract the Restart-Time.vbs file to the desktop.

Note   Note
Just for your reference, this is the contents of the Restart-Time.vbs file below:
Code:
 
Option Explicit
On Error Resume Next
Dim Wsh, Time1, Time2, Result, PathFile, MsgResult, MsgA, AppName, KeyA, KeyB, TimeDiff
MsgA = "Please close all running applications and click on OK."
KeyA = "HKEY_CURRENT_USER\Software\RestartTime\"
KeyB = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\RestartTime"
AppName = "Restart-Time"
Set Wsh = CreateObject("WScript.Shell")
PathFile = """" & WScript.ScriptFullName & """"
Result = wsh.RegRead(KeyA & "Times")
if Result = "" then
MsgResult = Msgbox (MsgA, vbOKCancel, AppName)
If MsgResult = vbcancel then WScript.Quit
Wsh.RegWrite KeyA & "Times", left(Time,8), "REG_SZ"
Wsh.RegWrite KeyB, PathFile, "REG_SZ"
Wsh.Run "cmd /c Shutdown -r -t 00", false, 0 
else
Wsh.RegDelete KeyA & "Times"
Wsh.RegDelete KeyA
Wsh.RegDelete KeyB
TimeDiff = DateDiff("s",Result,left(Time,8))
MsgBox "Your computer restarts in " & TimeDiff & " seconds", VbInformation, AppName
end if
wscript.Quit


4. Right click on the Restart-Time.vbs file, and click on Properties.

5. Under the General tab, click on the Unblock button to unblock the Restart-Time.vbs file. (See screenshot below)
NOTE: If you do not have a Unblock button, then it is already unblocked. Continue to step 6.
Restart Time-unblock.jpg
6. Click on the Restart-Time.vbs file to run it.

7. Click on OK to restart the computer. (See screenshot below)
WARNING: Close and save all windows first. This will immediately restart your computer.

8. When the computer finishes restarting, you will see your Windows 7 restart time. Click on OK when done. (See screenshot below)

9. You can now delete the downloaded .zip and .vbs files on the desktop if you like, or save them somewhere to use again later.
That's it,
Shawn



Published by
Brink's Avatar
Administrator

Join Date: Oct 2008
Location: Texas
Posts: 17,035
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools
12-10-2008   #1
darkassain


Windows 7 Ult x64(x2), HomePrem x32(x4), Server 08 (+VM), 08 R2 (VM) , SuSe 11.2 (VM), XP 32 (VM)
In a ∞ Portal
 
 


you should to add to unblock vbs since it would add to the time shown in the restart time...
just a thought

My System SpecsSystem Spec
12-10-2008   #2
Brink


Windows 7 Ultimate x64 SP1 beta
Texas
 
 


Good ideal Darkassain. Done.

Thank you,
Shawn
My System SpecsSystem Spec
01-21-2009   #3
seeker3


Windows 7,Windows Vista SP1,WindowsXP SP2
Great White North
 
 


Is there a way to make one of these just for boot up time?
My System SpecsSystem Spec
.
01-21-2009   #4
Brink


Windows 7 Ultimate x64 SP1 beta
Texas
 
 


Hello Seeker, I will forward this to the script author to see if it is possible

Shawn
My System SpecsSystem Spec
01-22-2009   #5
Patrick C


Windows 7 Professional - 64 Bit
Mission Viejo, CA
 
 


Brink - Hello! I tried your script to capture "The windows Restart time" for windows 7. I used the snipping tool and I can't see how to paste an image here. I think that You told me that, the "How to was over in thew Vista 64 forum." Could you assist me with that. Thank You - Patrick C
My System SpecsSystem Spec
01-22-2009   #6
Mark


Windows 7 Ultimate Vista Ultimate x64
QLD, Cairns
 
 


Use the advanced option on your post, then select the paperclip to attach your image and once you have uploaded it close that window and select the paperclip again and your image to place the image in the post.
My System SpecsSystem Spec
01-23-2009   #7
seeker3


Windows 7,Windows Vista SP1,WindowsXP SP2
Great White North
 
 

Thanks

Quote   Quote: Originally Posted by Brink View Post
Hello Seeker, I will forward this to the script author to see if it is possible

Shawn
I'm just curious,because I tried boot trace with perf toolkit and that didn,t work for me,and of course bootvis doesn't work either.
My System SpecsSystem Spec
01-23-2009   #8
Brink


Windows 7 Ultimate x64 SP1 beta
Texas
 
 


Seeker,

I have not heard anything back yet, but if you make sure you have nothing running when you restart the computer each time, then the shutdown time only adds a few seconds to the total restart time to make it pretty accurate for the boot time.
My System SpecsSystem Spec
01-23-2009   #9
SIW2


Vista x64 / 7 X64
 
 


Hi Patrick,

To post a jpeg, click the Go Advanced button at the bottom of the thread page and follow step 8 onward of this tutorial

How to use the Snipping Tool in Vista - Vista Forums

Hope it helps

SIW2
My System SpecsSystem Spec
Comment

Tutorial Tools



Similar Threads for: Restart Time
Windows 7 Tutorial Category
Solved Windows wants me to restart evey time I log in General Discussion
BSOD, forces restart but have auto restart off Crashes and Debugging
Auto restart even if uncheck automatic restart Crashes and Debugging
Restart time script problem Performance & Maintenance
M-Audio Audiophile 2496 sound hanging/stuttering from time to time Sound & Audio


All times are GMT -5. The time now is 08:00 AM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28