question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Loading personal and system profiles took so very long

See original GitHub issue

Steps to reproduce

After I login, I open pwsh

Expected behavior

Loading personal and system profiles took under 10000ms

Actual behavior

Loading personal and system profiles took so very long (~139104ms)

Environment data

Name                           Value
----                           -----
PSVersion                      7.1.0
PSEdition                      Core
GitCommitId                    7.1.0
OS                             Microsoft Windows 10.0.20262
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16

github_iconTop GitHub Comments

5reactions
KieranDevvscommented, Mar 31, 2022

@iSazonov Can we have this re-opened, im also experiencing this issue when using gitposh.

4reactions
yangpeng0607commented, Apr 19, 2023

https://stackoverflow.com/questions/59341482/powershell-steps-to-fix-slow-startup update of the .NET framework Run this as Administrator

$env:PATH = [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
[AppDomain]::CurrentDomain.GetAssemblies() | ForEach-Object {
    $path = $_.Location
    if ($path) { 
        $name = Split-Path $path -Leaf
        Write-Host -ForegroundColor Yellow "`r`nRunning ngen.exe on '$name'"
        ngen.exe install $path /nologo
    }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I disable personal and system profiles loading time ...
in setting.json go to "profiles" > "list" search for the entry that ... PowerShell 7.3.2 Loading personal and system profiles took 538ms.
Read more >
PS - Loading personal and system profiles took 777ms.
Anything over 2 seconds suggests a bloated profile. On my system, with a healthy profile, it takes 1659 ms!
Read more >
How to disable "Loading personal and system profiles took ...
You need to go to properties first, right click on shortcut, go to properties, the the target option add -nologo on the end....
Read more >
Optimizing your $Profile - PowerShell Team
My profile is currently loading between 15 and 23s and it pains me a bit that it takes so long. I now learned...
Read more >
Optimizing Your PowerShell Load Times
Loading personal and system profiles took 1234ms. ... To do so create a new profile and set the command line to pwsh.exe -noProfile...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found