Skip to content

Slow startup when loading one-line profile on a SSD #4239

@ghost

Description

Powershell takes a lot of time to launch, even on my computer with an SSD disk.
It says "Loading personal and system profiles took 1031ms."
My only profile option is set at $PROFILE.AllUsersAllHosts, with a single line to disable deafening beep.
Set-PSReadlineOption -BellStyle None.
Even with the profile file deleted, powershell still takes quite a lot of time to launch, but less than with the profile.
It used to take ~600ms to launch, but it jumped to ~1s after KB4025342 .

Environment data

PS C:\Users\phg> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.15063.483
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.15063.483
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions