What could explain Windows PowerShell taking over one hour to load?

When opening a Windows PowerShell tab in Windows Terminal, startup displayed:

Loading personal and system profiles took 3708961ms.
(base) PS C:Usersfranck>

enter image description here

What could explain Windows PowerShell taking over one hour to load?

I use Windows 11 25H2 Pro and PowerShell 5.1.26100.9711 with an MSI GS76 Stealth 11UH-078 (17.3″, 4K 120 Hz variant) (mirror, specs) laptop.


Profiles (checked all four $PROFILE locations):

  • AllUsersAllHosts (C:WindowsSystem32WindowsPowerShellv1.0profile.ps1): doesn’t exist

  • AllUsersCurrentHost (C:WindowsSystem32WindowsPowerShellv1.0Microsoft.PowerShell_profile.ps1): doesn’t exist

  • CurrentUserAllHosts (C:UsersfranckDocumentsWindowsPowerShellprofile.ps1):

    #region conda initialize
    # !! Contents within this block are managed by 'conda init' !!
    If (Test-Path "C:Usersfranckanaconda3Scriptsconda.exe") {
        (& "C:Usersfranckanaconda3Scriptsconda.exe" "shell.powershell" "hook") | Out-String | ?{$_} | Invoke-Expression
    }
    #endregion
    
  • CurrentUserCurrentHost (C:UsersfranckDocumentsWindowsPowerShellMicrosoft.PowerShell_profile.ps1):

    function claude { & (Get-Command claude -CommandType Application) --model 'claude-opus-4-8[1m]' --effort max @args }
    

Typically PowerShell loads within a few seconds:

enter image description here

In more details:

Startup Time
conda.exe shell.powershell hook alone 3.2 s
powershell -NoProfile 0.4 s
PowerShell with my profiles 5.4 s

The laptop didn’t go to sleep when it took Windows PowerShell over one hour to load.