Windows boot time variance


  1. Posts : 67
    Windows 10 Home 64-bit
       #1

    Windows boot time variance


    Not really a problem to be solved (I think) but I like to know how things work.
    I have clean system and the usual boot up time is 30 seconds or less.

    Sometimes for reasons I do not know, it takes 2 or 3 minutes, but back to normal next time without me doing anything in particular.

    Why?
      My Computer


  2. Posts : 18,032
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #2

    Hello @Passenger Chi,

    Just for informational purposes, if you are interested in Boot information, then Copy & Paste the following [ ALL at once ] into a CMD Prompt and press Enter. You are probably interested in ID=27:

    The below [Kernel-Boot ID=27] options [Within Message] are available:

    - 0x0 = Cold Boot from FULL Shutdown or Restart.
    - 0x1 = Hybrid Boot [Fast Startup].
    - 0x2 = Resume from Hibernation.

    Code:
    
    @echo off
    echo.
    PowerShell ^
         $Tot=((Get-WinEvent -ProviderName Microsoft-Windows-Kernel-Boot -ErrorAction 'SilentlyContinue') ^| Measure-Object).Count; ^
         $List=(Get-WinEvent -ProviderName Microsoft-Windows-Kernel-Boot -ErrorAction 'SilentlyContinue'  ^| Sort-Object -Property TimeCreated -Descending ^| Format-Table -Wrap -AutoSize ^
         @{L='Level Display Name';E={;if([string]::IsNullOrWhiteSpace($_.LevelDisplayName)) {'-'} else {$_.LevelDisplayName}}}, ^
         @{L='ID'                ;E={;if([string]::IsNullOrWhiteSpace($_.Id))               {'-'} else {$_.Id}}}, ^
         @{L='Record ID'         ;E={;if([string]::IsNullOrWhiteSpace($_.RecordID))         {'-'} else {$_.RecordID}}}, ^
         @{L='Time Created'      ;E={;if([string]::IsNullOrWhiteSpace($_.TimeCreated))      {'-'} else {$_.TimeCreated}}}, ^
         @{L='Message'           ;E={;if([string]::IsNullOrWhiteSpace($_.Message))          {'-'} else {$_.Message}}} ^| ^
    Out-String -Width 166).Trim("""`r`n"""); ^
         if ($List.Length) {Write-Host """`n `n--- WinEvent(s) --- Kernel-Boot [ALL] --- Total = $Tot --- Sorted by [TimeCreated -Descending] ---`n`n `n`n$List"""} else ^
                           {Write-Host """`n `n--- NO WinEvent(s) --- Kernel-Boot [ALL] Available ---"""; exit 1} >> %Temp%\A.txt
         for /f "delims=" %i in (%Temp%\A.txt) do echo. %i
         del %Temp%\A.txt & echo. & echo ^>Press ANY key to EXIT . . . & pause >nul & Exit
    
    
    

    If you JUST want the output to show ID=27, then let me know and I will post the commands for you.

    I hope this helps.
    Last edited by Paul Black; 19 Mar 2023 at 10:22.
      My Computer


  3. Posts : 8,518
    windows 10
       #3

    Often its just updates running at start
      My Computer


  4. Posts : 2,798
    Windows 10
       #4

    In addition to Windows updates there maybe indexing, virus/malware scans, disc optimisation, time syncing, applications scanning for updates etc, etc.
      My Computer


  5. Posts : 67
    Windows 10 Home 64-bit
    Thread Starter
       #5

    OK. Clear now.

    Thanks.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:27.
Find Us




Windows 10 Forums