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 file below.

Restart-Time.zip


(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 ZIP file to your desktop.

3 Unblock the ZIP file.

4 Extract the BAT file from the ZIP file.

5 Run the BAT file.

6 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

7 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

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


That's it,
Shawn Brink


 

Attachments

  • Restart-Time.zip
    948 bytes · Views: 55
Last edited:
@Brink
I just used the .vbs file from the sevenforums site. Works perfectly on W11. Any chance you could make that available to our 11forum members as well? (Many of them are probably not W7Forums members, and wouldn't have access to the files there.)
Done. :wink:
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
You can change the path in the command in the BAT file to use the correct path of where you moved it to.
@Brink, I have changed the path to %ProgramData% in the attached BAT file so as to avoid problems, as no one would move/relocate/rename the ProgramData folder, which is hidden by default. Would you consider replacing my old version with this new version?
 
Last edited:

My Computer

System One

  • OS
    Windows 10
@Brink, I have changed the path to %ProgramData% in the attached BAT file so as to avoid problems, as no one would move/relocate/rename the ProgramData folder, which is hidden by default. Would you consider replacing my old version with this new version?

Thank you Matthew. Done. :-)
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
@Brink Restart-Time.vbs is now being blocked by Windows Security.

1657450290697.png
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October 2021 it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update, and 24H2 on 3rd October through Windows Update by setting the Target Release Version for 24H2.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Dev, Beta, and RP 24H2 as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 8GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, Canary, and Release Preview builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. In-place upgrade to 24H2 using hybrid 23H2/24H2 install media. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Dev, Beta, and RP 24H2 as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 8GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, Canary, and Release Preview builds as a native boot .vhdx.
That is one of the reasons why I have written "Restart-Time.bat", which can be used instead of VBScript.
Yes, that runs fine, Defender doesn't object at all. :thumbsup:
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October 2021 it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update, and 24H2 on 3rd October through Windows Update by setting the Target Release Version for 24H2.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Dev, Beta, and RP 24H2 as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 8GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, Canary, and Release Preview builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. In-place upgrade to 24H2 using hybrid 23H2/24H2 install media. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Dev, Beta, and RP 24H2 as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 8GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, Canary, and Release Preview builds as a native boot .vhdx.
@Brink Restart-Time.vbs is now being blocked by Windows Security.

Thank you mate. I went ahead and removed the VBS option since Windows Security doesn't like it for some reason. :(
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
Note that the batch script will fail as long as the file path contains such special characters as a pair of brackets and an ampersand.
 

My Computer

System One

  • OS
    Windows 10
I saved the BAT file to the desktop. When ready, I pressed the space bar. It flashed an error and rebooted. When it started again it didn't show the time and complained that it couldn't find a location. Tried again and the batch file did not start after reboot.

I'll try again sometime. Win 11 Pro.

Edit: Just a thought, CMD is no longer used on my machine. Everything opens in Terminal. I wonder if that will affect the outcome?
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Bob the Builder
    CPU
    Intel i7-13700KF @ 5.4GHz
    Motherboard
    MSI MPG Z790 Edge WiFi DDR4
    Memory
    G-Skill F4-3200C16-16GVK x 2 (32GB total)
    Graphics Card(s)
    GeForce RTX 3060 Ti Ventus 2X 8G OCV1 LHR
    Sound Card
    Realtek® ALC4080 (mobo chipset)
    Monitor(s) Displays
    Philips 28 inch Display 288E2UAE
    Screen Resolution
    3840 x 2160 (16 x 9)
    Hard Drives
    Samsung 980 Pro NVMe M2 500GB, Samsung 980 NVMe M2 500GB, Samsung 2.5" SSD 1TB, Seagate 2.5" ST5000 5TB, Seagate Barracuda NVMe M2 1TB, Samsung MZVL2512HCJQ OEM NVMe M2 1TB
    PSU
    MSI MPG R850GF PSU (850W)
    Case
    Fractal Design Define 7 Compact ATX
    Cooling
    CoolerMaster MA610P
    Keyboard
    HAVIT mechanical keyboard HV-KB390L TKL
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Microsoft Edge
    Antivirus
    Microsoft
    Other Info
    Intel Ethernet 1226-V 2.5GHz @ 1GHz
    Intel Wi-Fi 6E AX210
    ASUS router RT-AX86U with Wi-Fi 6
    Logitech BRIO webcam
    Macrium Reflect 8.1 paid for backups etc.
  • Operating System
    Win 11 Pro 22H2
    Computer type
    Laptop
    Manufacturer/Model
    MSI SUMMIT E16 FLIP EVO A11MT-013AU
    CPU
    Intel i7-1195G7
    Memory
    16 GB
    Graphics card(s)
    Iris Xe graphics
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    16" 120Hz Pen Touch panel
    Screen Resolution
    2560 x 1600 (16 x 10)
    Hard Drives
    Samsung NVMe 980 Pro 1TB
    PSU
    Delta Electronics ADP-65SD B, HP 1HE08AA
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Keyboard
    Full Keyboard
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Firefox
    Antivirus
    Microsoft
    Other Info
    Killer Wi-Fi 6E 1675x (210NGW)
    MSI Pen
    Web Cam with Windows Hello Face
    Fingerprint Reader
    ASUS router RT-AX86U with Wi-Fi 6
    Macrium Reflect 8 paid for backups etc.
I just tested the BAT file on my laptop running build 25231, and it still works for me.

It did take a few moments after the restart before the prompt below showed.

2022-10-30_19h11_39.png
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
Just a thought, CMD is no longer used on my machine. Everything opens in Terminal. I wonder if that will affect the outcome?
I just tested the BAT file on my laptop running build 25231, and it still works for me.

It did take a few moments after the restart before the prompt below showed.

View attachment 43808
BobD asked if having Terminal as the default for running batch files instead of Cmd, a change introduced in 22H2 22621, made any difference. Brink's test appears to have used Cmd.

I have tested with Terminal. It does make one minor difference, though not one that would affect the results. With Cmd the windows are resized to a small window that just displays the relevant text. Using Terminal the windows does not get resized. Terminal opens at its normal size.

Restart1.png


Restart2.png
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October 2021 it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update, and 24H2 on 3rd October through Windows Update by setting the Target Release Version for 24H2.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Dev, Beta, and RP 24H2 as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 8GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, Canary, and Release Preview builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. In-place upgrade to 24H2 using hybrid 23H2/24H2 install media. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Dev, Beta, and RP 24H2 as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 8GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, Canary, and Release Preview builds as a native boot .vhdx.
I saved the BAT file to the desktop. When ready, I pressed the space bar. It flashed an error and rebooted. When it started again it didn't show the time and complained that it couldn't find a location. Tried again and the batch file did not start after reboot.

I'll try again sometime. Win 11 Pro.

Edit: Just a thought, CMD is no longer used on my machine. Everything opens in Terminal. I wonder if that will affect the outcome?
Win 11 Pro 22H2
The error that flashes just before booting is " Invalid Syntax : SET ET=%%# "
and it happens on both my machines. I can no longer open a CMD or PS window. They both open in Terminal.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Bob the Builder
    CPU
    Intel i7-13700KF @ 5.4GHz
    Motherboard
    MSI MPG Z790 Edge WiFi DDR4
    Memory
    G-Skill F4-3200C16-16GVK x 2 (32GB total)
    Graphics Card(s)
    GeForce RTX 3060 Ti Ventus 2X 8G OCV1 LHR
    Sound Card
    Realtek® ALC4080 (mobo chipset)
    Monitor(s) Displays
    Philips 28 inch Display 288E2UAE
    Screen Resolution
    3840 x 2160 (16 x 9)
    Hard Drives
    Samsung 980 Pro NVMe M2 500GB, Samsung 980 NVMe M2 500GB, Samsung 2.5" SSD 1TB, Seagate 2.5" ST5000 5TB, Seagate Barracuda NVMe M2 1TB, Samsung MZVL2512HCJQ OEM NVMe M2 1TB
    PSU
    MSI MPG R850GF PSU (850W)
    Case
    Fractal Design Define 7 Compact ATX
    Cooling
    CoolerMaster MA610P
    Keyboard
    HAVIT mechanical keyboard HV-KB390L TKL
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Microsoft Edge
    Antivirus
    Microsoft
    Other Info
    Intel Ethernet 1226-V 2.5GHz @ 1GHz
    Intel Wi-Fi 6E AX210
    ASUS router RT-AX86U with Wi-Fi 6
    Logitech BRIO webcam
    Macrium Reflect 8.1 paid for backups etc.
  • Operating System
    Win 11 Pro 22H2
    Computer type
    Laptop
    Manufacturer/Model
    MSI SUMMIT E16 FLIP EVO A11MT-013AU
    CPU
    Intel i7-1195G7
    Memory
    16 GB
    Graphics card(s)
    Iris Xe graphics
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    16" 120Hz Pen Touch panel
    Screen Resolution
    2560 x 1600 (16 x 10)
    Hard Drives
    Samsung NVMe 980 Pro 1TB
    PSU
    Delta Electronics ADP-65SD B, HP 1HE08AA
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Keyboard
    Full Keyboard
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Firefox
    Antivirus
    Microsoft
    Other Info
    Killer Wi-Fi 6E 1675x (210NGW)
    MSI Pen
    Web Cam with Windows Hello Face
    Fingerprint Reader
    ASUS router RT-AX86U with Wi-Fi 6
    Macrium Reflect 8 paid for backups etc.
I have a work around. Because of the error, the batch file does not start after restart.
I just start the batch file as soon as I see the desktop and I get a result that looks OK.
My desktop takes 54 seconds and my laptop takes 45 seconds.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Bob the Builder
    CPU
    Intel i7-13700KF @ 5.4GHz
    Motherboard
    MSI MPG Z790 Edge WiFi DDR4
    Memory
    G-Skill F4-3200C16-16GVK x 2 (32GB total)
    Graphics Card(s)
    GeForce RTX 3060 Ti Ventus 2X 8G OCV1 LHR
    Sound Card
    Realtek® ALC4080 (mobo chipset)
    Monitor(s) Displays
    Philips 28 inch Display 288E2UAE
    Screen Resolution
    3840 x 2160 (16 x 9)
    Hard Drives
    Samsung 980 Pro NVMe M2 500GB, Samsung 980 NVMe M2 500GB, Samsung 2.5" SSD 1TB, Seagate 2.5" ST5000 5TB, Seagate Barracuda NVMe M2 1TB, Samsung MZVL2512HCJQ OEM NVMe M2 1TB
    PSU
    MSI MPG R850GF PSU (850W)
    Case
    Fractal Design Define 7 Compact ATX
    Cooling
    CoolerMaster MA610P
    Keyboard
    HAVIT mechanical keyboard HV-KB390L TKL
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Microsoft Edge
    Antivirus
    Microsoft
    Other Info
    Intel Ethernet 1226-V 2.5GHz @ 1GHz
    Intel Wi-Fi 6E AX210
    ASUS router RT-AX86U with Wi-Fi 6
    Logitech BRIO webcam
    Macrium Reflect 8.1 paid for backups etc.
  • Operating System
    Win 11 Pro 22H2
    Computer type
    Laptop
    Manufacturer/Model
    MSI SUMMIT E16 FLIP EVO A11MT-013AU
    CPU
    Intel i7-1195G7
    Memory
    16 GB
    Graphics card(s)
    Iris Xe graphics
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    16" 120Hz Pen Touch panel
    Screen Resolution
    2560 x 1600 (16 x 10)
    Hard Drives
    Samsung NVMe 980 Pro 1TB
    PSU
    Delta Electronics ADP-65SD B, HP 1HE08AA
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Keyboard
    Full Keyboard
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Firefox
    Antivirus
    Microsoft
    Other Info
    Killer Wi-Fi 6E 1675x (210NGW)
    MSI Pen
    Web Cam with Windows Hello Face
    Fingerprint Reader
    ASUS router RT-AX86U with Wi-Fi 6
    Macrium Reflect 8 paid for backups etc.
The problem I have with this batch file is the time it returns is... wrong.
Using the bat file, I get 63 seconds. Using a stop watch I get 36 seconds. That's pretty far off. ^^


I start the stop watch when I click on... Shut down or sign out > Restart ...and stop it when I'm back on desktop and can open the browser.


/edit

Correction.. 44 seconds with stop watch (including typing the password).
I forgot, I turned off fastboot in the BIOS, a few days ago.
 
Last edited:

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦26100.2161 ♦♦♦♦♦♦♦24H2
    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?

Attachments

  • Screenshot 2022-10-31 175547 mod.jpg
    Screenshot 2022-10-31 175547 mod.jpg
    51.8 KB · Views: 42

My Computers

System One System Two

  • OS
    Windows 11 Pro 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Bob the Builder
    CPU
    Intel i7-13700KF @ 5.4GHz
    Motherboard
    MSI MPG Z790 Edge WiFi DDR4
    Memory
    G-Skill F4-3200C16-16GVK x 2 (32GB total)
    Graphics Card(s)
    GeForce RTX 3060 Ti Ventus 2X 8G OCV1 LHR
    Sound Card
    Realtek® ALC4080 (mobo chipset)
    Monitor(s) Displays
    Philips 28 inch Display 288E2UAE
    Screen Resolution
    3840 x 2160 (16 x 9)
    Hard Drives
    Samsung 980 Pro NVMe M2 500GB, Samsung 980 NVMe M2 500GB, Samsung 2.5" SSD 1TB, Seagate 2.5" ST5000 5TB, Seagate Barracuda NVMe M2 1TB, Samsung MZVL2512HCJQ OEM NVMe M2 1TB
    PSU
    MSI MPG R850GF PSU (850W)
    Case
    Fractal Design Define 7 Compact ATX
    Cooling
    CoolerMaster MA610P
    Keyboard
    HAVIT mechanical keyboard HV-KB390L TKL
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Microsoft Edge
    Antivirus
    Microsoft
    Other Info
    Intel Ethernet 1226-V 2.5GHz @ 1GHz
    Intel Wi-Fi 6E AX210
    ASUS router RT-AX86U with Wi-Fi 6
    Logitech BRIO webcam
    Macrium Reflect 8.1 paid for backups etc.
  • Operating System
    Win 11 Pro 22H2
    Computer type
    Laptop
    Manufacturer/Model
    MSI SUMMIT E16 FLIP EVO A11MT-013AU
    CPU
    Intel i7-1195G7
    Memory
    16 GB
    Graphics card(s)
    Iris Xe graphics
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    16" 120Hz Pen Touch panel
    Screen Resolution
    2560 x 1600 (16 x 10)
    Hard Drives
    Samsung NVMe 980 Pro 1TB
    PSU
    Delta Electronics ADP-65SD B, HP 1HE08AA
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Keyboard
    Full Keyboard
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Firefox
    Antivirus
    Microsoft
    Other Info
    Killer Wi-Fi 6E 1675x (210NGW)
    MSI Pen
    Web Cam with Windows Hello Face
    Fingerprint Reader
    ASUS router RT-AX86U with Wi-Fi 6
    Macrium Reflect 8 paid for backups etc.
Using the bat file, I get 63 seconds.
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Do you have a lot of items included in the above "Run" key? If so, that will significantly increase the restart time measured by the batch script.
 

My Computer

System One

  • OS
    Windows 10
In your attached screenshot, part of the file path has been redacted.
Please put the file into a location whose path is not confidential.
The path is D:\ and the window screenshot is attached.
 

Attachments

  • Screenshot 2022-10-31 191239.jpg
    Screenshot 2022-10-31 191239.jpg
    58.4 KB · Views: 49

My Computers

System One System Two

  • OS
    Windows 11 Pro 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Bob the Builder
    CPU
    Intel i7-13700KF @ 5.4GHz
    Motherboard
    MSI MPG Z790 Edge WiFi DDR4
    Memory
    G-Skill F4-3200C16-16GVK x 2 (32GB total)
    Graphics Card(s)
    GeForce RTX 3060 Ti Ventus 2X 8G OCV1 LHR
    Sound Card
    Realtek® ALC4080 (mobo chipset)
    Monitor(s) Displays
    Philips 28 inch Display 288E2UAE
    Screen Resolution
    3840 x 2160 (16 x 9)
    Hard Drives
    Samsung 980 Pro NVMe M2 500GB, Samsung 980 NVMe M2 500GB, Samsung 2.5" SSD 1TB, Seagate 2.5" ST5000 5TB, Seagate Barracuda NVMe M2 1TB, Samsung MZVL2512HCJQ OEM NVMe M2 1TB
    PSU
    MSI MPG R850GF PSU (850W)
    Case
    Fractal Design Define 7 Compact ATX
    Cooling
    CoolerMaster MA610P
    Keyboard
    HAVIT mechanical keyboard HV-KB390L TKL
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Microsoft Edge
    Antivirus
    Microsoft
    Other Info
    Intel Ethernet 1226-V 2.5GHz @ 1GHz
    Intel Wi-Fi 6E AX210
    ASUS router RT-AX86U with Wi-Fi 6
    Logitech BRIO webcam
    Macrium Reflect 8.1 paid for backups etc.
  • Operating System
    Win 11 Pro 22H2
    Computer type
    Laptop
    Manufacturer/Model
    MSI SUMMIT E16 FLIP EVO A11MT-013AU
    CPU
    Intel i7-1195G7
    Memory
    16 GB
    Graphics card(s)
    Iris Xe graphics
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    16" 120Hz Pen Touch panel
    Screen Resolution
    2560 x 1600 (16 x 10)
    Hard Drives
    Samsung NVMe 980 Pro 1TB
    PSU
    Delta Electronics ADP-65SD B, HP 1HE08AA
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Keyboard
    Full Keyboard
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Firefox
    Antivirus
    Microsoft
    Other Info
    Killer Wi-Fi 6E 1675x (210NGW)
    MSI Pen
    Web Cam with Windows Hello Face
    Fingerprint Reader
    ASUS router RT-AX86U with Wi-Fi 6
    Macrium Reflect 8 paid for backups etc.
It looks like there may have been a permissions problem. I ran the original timer script from my desktop.
I'm looking into the permissions angle now.
 

Attachments

  • Screenshot 2022-10-31 192000.jpg
    Screenshot 2022-10-31 192000.jpg
    28.3 KB · Views: 44

My Computers

System One System Two

  • OS
    Windows 11 Pro 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Bob the Builder
    CPU
    Intel i7-13700KF @ 5.4GHz
    Motherboard
    MSI MPG Z790 Edge WiFi DDR4
    Memory
    G-Skill F4-3200C16-16GVK x 2 (32GB total)
    Graphics Card(s)
    GeForce RTX 3060 Ti Ventus 2X 8G OCV1 LHR
    Sound Card
    Realtek® ALC4080 (mobo chipset)
    Monitor(s) Displays
    Philips 28 inch Display 288E2UAE
    Screen Resolution
    3840 x 2160 (16 x 9)
    Hard Drives
    Samsung 980 Pro NVMe M2 500GB, Samsung 980 NVMe M2 500GB, Samsung 2.5" SSD 1TB, Seagate 2.5" ST5000 5TB, Seagate Barracuda NVMe M2 1TB, Samsung MZVL2512HCJQ OEM NVMe M2 1TB
    PSU
    MSI MPG R850GF PSU (850W)
    Case
    Fractal Design Define 7 Compact ATX
    Cooling
    CoolerMaster MA610P
    Keyboard
    HAVIT mechanical keyboard HV-KB390L TKL
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Microsoft Edge
    Antivirus
    Microsoft
    Other Info
    Intel Ethernet 1226-V 2.5GHz @ 1GHz
    Intel Wi-Fi 6E AX210
    ASUS router RT-AX86U with Wi-Fi 6
    Logitech BRIO webcam
    Macrium Reflect 8.1 paid for backups etc.
  • Operating System
    Win 11 Pro 22H2
    Computer type
    Laptop
    Manufacturer/Model
    MSI SUMMIT E16 FLIP EVO A11MT-013AU
    CPU
    Intel i7-1195G7
    Memory
    16 GB
    Graphics card(s)
    Iris Xe graphics
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    16" 120Hz Pen Touch panel
    Screen Resolution
    2560 x 1600 (16 x 10)
    Hard Drives
    Samsung NVMe 980 Pro 1TB
    PSU
    Delta Electronics ADP-65SD B, HP 1HE08AA
    Mouse
    Logitech M350 Pebble Mouse BT + wireless
    Keyboard
    Full Keyboard
    Internet Speed
    50 x 20 megabits / second fibre
    Browser
    Firefox
    Antivirus
    Microsoft
    Other Info
    Killer Wi-Fi 6E 1675x (210NGW)
    MSI Pen
    Web Cam with Windows Hello Face
    Fingerprint Reader
    ASUS router RT-AX86U with Wi-Fi 6
    Macrium Reflect 8 paid for backups etc.

Latest Support Threads

Latest Tutorials

Back
Top Bottom