General See Windows 11 Restart Time


  • Staff
Restart_Time_banner.png

This tutorial will show you how long it takes Windows 11 to restart and get back to the desktop.

It would be recommended to disable the delay of running startup apps below to get a more accurate restart time.


You can also view the startup logs in Event Viewer (eventvwr.msc) in the Applications and Services Logs (takes a moment to load) > Microsoft > Windows > Diagnostics-Performance > Microsoft-Windows-Diagnostics-Performance/Operational log. The logs will be in the middle to show you what ran at startup, how long it took, and more.




Here's How:

1 Click/tap on the Download button below to download the BAT file below.

Restart-Time.bat


(Contents of BAT file for reference)
Code:
:: This script was created by Matthew Wai at www.TenForums.com/members/matthew-wai.html
::—————————————————————————————————————————————————————————————————————————————————
@echo off & mode con cols=54 lines=5 & For /F "skip=1 tokens=*" %%# in (
'"PowerShell Get-Date"') DO (Set "ET=%%#")
Title Measure the restart time & color 17 & Set "[U]=($ET-$ST).TotalSeconds"
Set "[N]=Measure_the_restart_time_via_a_batch_script_provided_by_TenForums"
Set "[F]=%ProgramData%" & Set "[C]=[DateTime]::parse" & color 17
Set "[K]=HKCU\SOFTWARE\Microsoft"&Set "[I]= seconds to completely restart Windows."
Set "[S]=%[F]%\%[N]%.log" & Set "[L]=  It took " & Set "[P]=PowerShell.exe -Command "
If exist "%[S]%" (Echo.& Goto [Post_restart]) else (Echo.
Echo     Please firstly close all running applications.
Echo     Then press a key to restart Windows. & Pause>Nul
REG Add "%[K]%\Windows\CurrentVersion\Run" /V "%[N]%" /T REG_SZ /D """"%~f0"""" /F>Nul
%[P]%Get-Date>"%[S]%" && Shutdown -r -f -t 00 & Exit)
:[Post_restart]
For /f "delims=" %%# in ('"Type "%[S]%""') Do (set "ST=%%#")
%[P]%"&{$ST=%[C]%('%ST%');$ET=%[C]%('%ET%');echo (-join('%[L]%',%[U]%,'%[I]%'));}"
Del "%[S]%" & REG Delete "%[K]%\Windows\CurrentVersion\Run" /V "%[N]%" /F>Nul
Echo   You may press a key to close this window. & Pause>Nul & Exit
::—————————————————————————————————————————————————————————————————————————————————

2 Save the BAT file to your desktop.

3 Unblock and run the BAT file.

4 When prompted, close all running apps, then press a key or click/tap on OK to restart Windows. (see screenshot below)

Restart_time_BAT-1.png

5 You will see your Windows restart time shortly after the computer has finished restarting and you are back on the desktop. (see screenshot below)

Restart_time_BAT-2.png

6 You can now delete the BAT file if you like.


That's it,
Shawn Brink


 

Attachments

  • Restart-Time.bat
    1.7 KB · Views: 343
  • Restart_Time.png
    Restart_Time.png
    19.5 KB · Views: 95
Last edited:
I ran the scripts on my ASUS laptop with Windows 11 Home.

Old run #1: 55 secs
New run #1: 45 secs
New run #2: 38 secs

There is some variability in doing this because it depends how fast I can log in. Note I do have to stop and enter my PIN.

2023-03-02 23_52_24-Administrator_  Measure the restart time.jpg
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    ASUS TUF Gaming A15 (2022)
    CPU
    AMD Ryzen 7 6800H with Radeon 680M GPU (486MB RAM)
    Memory
    Micron DDR5-4800 (2400MHz) 16GB (2 x 8GB)
    Graphics Card(s)
    NVIDIA RTX 3060 Laptop (6GB RAM)
    Sound Card
    n/a
    Monitor(s) Displays
    15.6-inch
    Screen Resolution
    1920x1080 300Hz
    Hard Drives
    2 x Samsung 980 (1TB M.2 NVME SSD)
    PSU
    n/a
    Mouse
    Wireless Mouse M510
    Internet Speed
    1200Mbps/250Mbps
    Browser
    Firefox
    Antivirus
    Malwarebytes
  • Operating System
    Windows 11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom build
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    ASUS PRIME X370-PRO
    Memory
    G.SKILL Flare X 32GB (2x16GB) DDR4
    Graphics card(s)
    ASUS ROG-STRIX-RTX3060TI-08G-V2-GAMING (RTX 3060-Ti, 8GB RAM)
    Monitor(s) Displays
    Samsung S23A300B (23-in LED)
    Screen Resolution
    1080p 60Hz
    Hard Drives
    2TB XPG SX8200 Pro (M2. PCIe SSD) || 2TB Intel 660P (M2. PCIe SSD) ||
    PSU
    Corsair RM750x (750 watts)
    Case
    Cooler Master MasterCase 5
    Cooling
    Corsair H60 AIO water cooler
    Mouse
    Logitech K350 (wireless)
    Keyboard
    Logitech M510 (wireless)
    Internet Speed
    1200 Mbps down / 200 Mbps up
    Browser
    Firefox, Edge, Chrome
    Antivirus
    Malwarebytes (Premium)
    Other Info
    ASUS Blu-ray Burner BW-16D1HT (SATA) || Western Digital Elements 12TB USB 3.0 external hard drive used with Acronis True Image backup software || HP OfficeJet Pro 6975 Printer/Scanner
Note I do have to stop and enter my PIN.
I do not have to enter my PIN although I have set a PIN.
I have disabled "User must enter a user name and password to use this computer".
I have run the following command:
Code:
(REG Add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /V "DevicePasswordLessBuildVersion" /T REG_DWORD /D 0 /F)
Brink could have written a tutorial about how to do so.
 

My Computer

System One

  • OS
    Windows 10
I do not have to enter my PIN although I have set a PIN.
I have disabled "User must enter a user name and password to use this computer".
I have run the following command:
Code:
(REG Add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /V "DevicePasswordLessBuildVersion" /T REG_DWORD /D 0 /F)
Brink could have written a tutorial about how to do so.
I ran that command. It said the change was made to the registry. However, when I ran the restart script I still had to enter my PIN.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    ASUS TUF Gaming A15 (2022)
    CPU
    AMD Ryzen 7 6800H with Radeon 680M GPU (486MB RAM)
    Memory
    Micron DDR5-4800 (2400MHz) 16GB (2 x 8GB)
    Graphics Card(s)
    NVIDIA RTX 3060 Laptop (6GB RAM)
    Sound Card
    n/a
    Monitor(s) Displays
    15.6-inch
    Screen Resolution
    1920x1080 300Hz
    Hard Drives
    2 x Samsung 980 (1TB M.2 NVME SSD)
    PSU
    n/a
    Mouse
    Wireless Mouse M510
    Internet Speed
    1200Mbps/250Mbps
    Browser
    Firefox
    Antivirus
    Malwarebytes
  • Operating System
    Windows 11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom build
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    ASUS PRIME X370-PRO
    Memory
    G.SKILL Flare X 32GB (2x16GB) DDR4
    Graphics card(s)
    ASUS ROG-STRIX-RTX3060TI-08G-V2-GAMING (RTX 3060-Ti, 8GB RAM)
    Monitor(s) Displays
    Samsung S23A300B (23-in LED)
    Screen Resolution
    1080p 60Hz
    Hard Drives
    2TB XPG SX8200 Pro (M2. PCIe SSD) || 2TB Intel 660P (M2. PCIe SSD) ||
    PSU
    Corsair RM750x (750 watts)
    Case
    Cooler Master MasterCase 5
    Cooling
    Corsair H60 AIO water cooler
    Mouse
    Logitech K350 (wireless)
    Keyboard
    Logitech M510 (wireless)
    Internet Speed
    1200 Mbps down / 200 Mbps up
    Browser
    Firefox, Edge, Chrome
    Antivirus
    Malwarebytes (Premium)
    Other Info
    ASUS Blu-ray Burner BW-16D1HT (SATA) || Western Digital Elements 12TB USB 3.0 external hard drive used with Acronis True Image backup software || HP OfficeJet Pro 6975 Printer/Scanner

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦22631.3447 ♦♦♦♦♦♦♦23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE (BIOS 4702)
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    Cooler Master ATCS 840 Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    300/300
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® (not in use)
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    300/300
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?
Instead of making any changes to my account I temporarily created another Admin user without a password. When I ran the restart script again it only reduced the startup time to 37 seconds. This only saved about 1 second.

2023-03-03 01_52_22-Administrator_  Measure the restart time.png


BTW, normally it takes much longer than 1 second to login but I can do it in 1-2 seconds if I try hard.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    ASUS TUF Gaming A15 (2022)
    CPU
    AMD Ryzen 7 6800H with Radeon 680M GPU (486MB RAM)
    Memory
    Micron DDR5-4800 (2400MHz) 16GB (2 x 8GB)
    Graphics Card(s)
    NVIDIA RTX 3060 Laptop (6GB RAM)
    Sound Card
    n/a
    Monitor(s) Displays
    15.6-inch
    Screen Resolution
    1920x1080 300Hz
    Hard Drives
    2 x Samsung 980 (1TB M.2 NVME SSD)
    PSU
    n/a
    Mouse
    Wireless Mouse M510
    Internet Speed
    1200Mbps/250Mbps
    Browser
    Firefox
    Antivirus
    Malwarebytes
  • Operating System
    Windows 11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom build
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    ASUS PRIME X370-PRO
    Memory
    G.SKILL Flare X 32GB (2x16GB) DDR4
    Graphics card(s)
    ASUS ROG-STRIX-RTX3060TI-08G-V2-GAMING (RTX 3060-Ti, 8GB RAM)
    Monitor(s) Displays
    Samsung S23A300B (23-in LED)
    Screen Resolution
    1080p 60Hz
    Hard Drives
    2TB XPG SX8200 Pro (M2. PCIe SSD) || 2TB Intel 660P (M2. PCIe SSD) ||
    PSU
    Corsair RM750x (750 watts)
    Case
    Cooler Master MasterCase 5
    Cooling
    Corsair H60 AIO water cooler
    Mouse
    Logitech K350 (wireless)
    Keyboard
    Logitech M510 (wireless)
    Internet Speed
    1200 Mbps down / 200 Mbps up
    Browser
    Firefox, Edge, Chrome
    Antivirus
    Malwarebytes (Premium)
    Other Info
    ASUS Blu-ray Burner BW-16D1HT (SATA) || Western Digital Elements 12TB USB 3.0 external hard drive used with Acronis True Image backup software || HP OfficeJet Pro 6975 Printer/Scanner
I temporarily created another Admin user without a password. When I ran the restart script again it only reduced the startup time to 37 seconds. This only saved about 1 second.
Set a very long password and type it as slowly as possible during a restart. See how long the restart time is.
 

My Computer

System One

  • OS
    Windows 10
Set a very long password and type it as slowly as possible during a restart. See how long the restart time is.
I tried this several times using the same PIN. The longer I took to log in the longer the restart time was. Here are a couple examples.

2023-03-03 09_27_30-Administrator_  Measure the restart time.jpg


2023-03-03 09_29_42-Administrator_  Measure the restart time.jpg
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    ASUS TUF Gaming A15 (2022)
    CPU
    AMD Ryzen 7 6800H with Radeon 680M GPU (486MB RAM)
    Memory
    Micron DDR5-4800 (2400MHz) 16GB (2 x 8GB)
    Graphics Card(s)
    NVIDIA RTX 3060 Laptop (6GB RAM)
    Sound Card
    n/a
    Monitor(s) Displays
    15.6-inch
    Screen Resolution
    1920x1080 300Hz
    Hard Drives
    2 x Samsung 980 (1TB M.2 NVME SSD)
    PSU
    n/a
    Mouse
    Wireless Mouse M510
    Internet Speed
    1200Mbps/250Mbps
    Browser
    Firefox
    Antivirus
    Malwarebytes
  • Operating System
    Windows 11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom build
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    ASUS PRIME X370-PRO
    Memory
    G.SKILL Flare X 32GB (2x16GB) DDR4
    Graphics card(s)
    ASUS ROG-STRIX-RTX3060TI-08G-V2-GAMING (RTX 3060-Ti, 8GB RAM)
    Monitor(s) Displays
    Samsung S23A300B (23-in LED)
    Screen Resolution
    1080p 60Hz
    Hard Drives
    2TB XPG SX8200 Pro (M2. PCIe SSD) || 2TB Intel 660P (M2. PCIe SSD) ||
    PSU
    Corsair RM750x (750 watts)
    Case
    Cooler Master MasterCase 5
    Cooling
    Corsair H60 AIO water cooler
    Mouse
    Logitech K350 (wireless)
    Keyboard
    Logitech M510 (wireless)
    Internet Speed
    1200 Mbps down / 200 Mbps up
    Browser
    Firefox, Edge, Chrome
    Antivirus
    Malwarebytes (Premium)
    Other Info
    ASUS Blu-ray Burner BW-16D1HT (SATA) || Western Digital Elements 12TB USB 3.0 external hard drive used with Acronis True Image backup software || HP OfficeJet Pro 6975 Printer/Scanner
Back
Top Bottom