Boot Up Time

How to See What Your Boot Up Time is in Vista

information   Information
To optimize the boot/shutdown of Windows, it is necessary to know precisely the reboot time of the computer to be able to refine its adjustments.
But rather than having the hand on a stop watch at the time of the reboot, better use this easy way, You will appreciate how simple it is to use and the precision of the result.

The relative time value will then give you a point of comparison to optimize the boot/shutdown of your computer.
Note   Note
For fun you can post your results here: ReBoot Time

EXAMPLE: ReBoot-Time dialog box
NOTE:
This is what you will see after running the VB Script file from below and when you computer finishes restarting.

ReBoot_Time.jpg
Here's How:
information   Information
In order to calculate the time of rebooting Windows, we will use a VB Script (Visual BASIC Scripting Edition). Let us learn first how it works.

The script writes a value in the registry (HKCU \ Software \ Microsoft \ Current Version \ run) so that it can be started again when booting. Then, another value containing the time is writen in the registry when the reboot is launched. While rebooting, the script records the hour in a variable then checks if the first value containing the time exists. If so, it is then enough to compare two times in order to obtain the time of rebooting. Then, the two keys added in the registry are removed (the run key and the key where the time is stored).

1) Open your favorite text editor (notepad will do the job perfectly) and copy/paste the following script:

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 = "ReBoot-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 reboots in " & TimeDiff & " seconds", VbInformation, AppName
end if
wscript.Quit

2) Save the file wherever you want on the same HDD (desktop for example) as ReBoot-Time.vbs (you can choose whatever name as far as the extension is ".VBS".

You can also download the script file here:

download < Click to Download


Use of the Script:
  • Double click on the script icon if it is on your desktop or on the file if you saved it in a particular folder.
  • Close all the running applications and click the OK button in the dialog box.
  • The computer will reboot and when Windows will be ready to be used, a new dialog box will open displaying the time your computer took to reboot.
Voila!


 

Attachments

  • bootspeed.vbs
    961 bytes · Views: 13,229
  • thumb_Bootscreen.jpg
    thumb_Bootscreen.jpg
    1.6 KB · Views: 325
Last edited by a moderator:
You said that this writes a value in the registry then deletes itself from the registry after showing the Reboot Time?
Does it just remake the registry value everytime you use it and delete itself?
 

My Computer

Hi McGrady,

When you click OK to reboot, those 2 keys are added to the registry so they are available when the computer boots.
Key A contains the time
Key B is in "run" so the script starts again when the computer has booted
A: HKEY_CURRENT_USER\Software\RestartTime\
B: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\RestartTime

At the end, the script calculates the difference between the 2 "times" and deletes the 2 keys.

So every time you use the script, it does it again and again.
 

My Computer

well i got this after i done it:

"Your computer reboots in 64 seconds"


after doing optimization for both cores

"Your computer reboots in 57 seconds"

=D... thats nice! works well!
thats with kaspersky,utorrent,ultramon running at start up!
and i have dual display!
 

My Computer

Thanks for great script ..but one question if u dont wants this thn only Delete it or u have to delete it from Registry too????
 

My Computer

Hi bmb and welcome to the Vista forums!

If you do not want it anymore, just put the script in the bin.
The registry entries are automatically deleted when the script has finished its job ;)
 

My Computer

Sid, I fixed the ones I could this morning ;)
 

My Computers

System One System Two

  • Operating System
    Windows 11 Workstation
    Manufacturer/Model
    doofenshmirtz evil incorporated
    CPU
    Ryzen 9 5950X
    Motherboard
    Asus ROG Crosshair VIII Formula
    Memory
    Corsair Vengeance RGB PRO Black 64GB (4x16GB) 3600MHz AMD Ryzen Tuned DDR4
    Graphics Card(s)
    ASUS AMD Radeon RX 6900 XT 16GB ROG Strix LC OC
    Sound Card
    Creative
    Monitor(s) Displays
    3 x27" Dell U2724D & 1 x 34" Dell U3415W
    Hard Drives
    Samsung 980 Pro 1TB M.2 2280 PCI-e 4.0 x4 NVMe Solid State
    Drive
    PSU
    1500W ThermalTake Toughpower
    Case
    ThermalTake Level 10 GT
    Cooling
    Enermax Liqtech 240
    Keyboard
    Surface Ergonomic.
    Mouse
    Logitech Performance MX
    Internet Speed
    350 Mb/s
    Other Info
    WinTV NovaTD
    HP CP1515n Color Laser
    Sony BD-5300S-0B Blu-ray Writer
    Microsoft LifeCam Cinema
    APC 750i Smart UPS
  • Operating System
    windows 10
    Manufacturer/Model
    Surface Pro 3
    CPU
    1.9GHz Intel Core i5-4300U (dual-core, 3MB cache, up to 2.9GHz with Turbo Boost)
    Memory
    4GB
    Graphics card(s)
    Intel HD Graphics 4400
    Monitor(s) Displays
    12" Multi Touch
    Screen Resolution
    2160 x 144
    Hard Drives
    128GB
    Mouse
    Logitech
    Keyboard
    yes
    Internet Speed
    350 Mb/s
I think maybe it was because I was not logged into this site? It worked now and I just got an account on this site. So that might be why and if so, my bad. sorry, forgive me please.

I do know copying the text and pasting it into a word pad file and saving it as stated it messed up my pc and made it not be able to boot. I did it a few times ok and then could not boot. System restore fixed the boot issue and i'm lucky there's a startup repair thing opn my pc that auto starts during boot to fix the issue if you can't boot.

I just downloaded the file and will try that.
 

My Computer

sidney1st, awesome looking Dog. I love him/her. I love Dogs.

I tried the vbs file and it worked. I didn't download the new zip you posted. Too bad the hack thing doesn't work for me tho really, :( 4 second difference one time I tried it.
 

My Computer

Nice script...this should work the same for XP too correct?
 

My Computer

System One

  • Manufacturer/Model
    Homebrew
    CPU
    Q6600 (G0) SLACR
    Motherboard
    Gigabyte EP35 DS3R
    Memory
    2 gigs G.Skill DDR2
    Graphics Card(s)
    XFX 8600GT
    Monitor(s) Displays
    Samsung T190 1440X900
    Screen Resolution
    1440X900
    Hard Drives
    2X Seagate 120 (OS's) IDE
    1X WD 750 SATA
    PSU
    Corsair HX520
    Case
    Coolmax el cheapo
    Cooling
    Rosewill HSF (soon to upgrade)
    Keyboard
    BTW low profile backlit/quiet key
Thanks and again...nice script
 

My Computer

System One

  • Manufacturer/Model
    Homebrew
    CPU
    Q6600 (G0) SLACR
    Motherboard
    Gigabyte EP35 DS3R
    Memory
    2 gigs G.Skill DDR2
    Graphics Card(s)
    XFX 8600GT
    Monitor(s) Displays
    Samsung T190 1440X900
    Screen Resolution
    1440X900
    Hard Drives
    2X Seagate 120 (OS's) IDE
    1X WD 750 SATA
    PSU
    Corsair HX520
    Case
    Coolmax el cheapo
    Cooling
    Rosewill HSF (soon to upgrade)
    Keyboard
    BTW low profile backlit/quiet key
I can't get this thing to work. I downloaded it to a folder and closed all open apps and clicked open/run and all i get it the note pad page from the post. What am I doing wrong?
 

My Computer

System One

  • Manufacturer/Model
    Self built
    CPU
    AMD Athlon 64x2 6000+ 3.0ghz
    Motherboard
    Asus M4N78 Pro
    Memory
    3Gb PC2-5300 DDR2 @ 667mhz
    Graphics Card(s)
    XFX Radeon HD 4770 512mb GDDR5
    Sound Card
    VIA HD Audio
    Monitor(s) Displays
    Dual monitors: HP W1907 LCD 19" and Gateway HD Display 19" LCD
    Screen Resolution
    1440x900
    Hard Drives
    Barracuda 7200.10 SATA 3.0Gb/s 320 x 2-GB Hard Drive
    PSU
    Antec Earthwatts 80 plus 500 watts
    Case
    Ultra E-Torque ATX Mid tower clear side w/2 120mm fans
    Cooling
    Thermaltake MaxOrb cpu cooler w/120 mm blue led
    Keyboard
    OEM HP
    Mouse
    OEM HP
    Internet Speed
    Download 6885 kb/s upload 367 kb/s
    Other Info
    Optical: Super Muliti DVD burner w/lightscribe, Hauppauge WinTV HVR-1800
I can't get this thing to work. I downloaded it to a folder and closed all open apps and clicked open/run and all i get it the note pad page from the post. What am I doing wrong?

Hi Bassfisher,

You must have associated .vbs files with notepad, just use Sidney1st`s reboot-time executable instead ;)

download

Steven
 

My Computer

Back
Top