r/PowerShell • • May 04 '21

Question Powershell - Super slow Startup - Not Modules

So I have looked around and tried various fixes and nothing seems to work.

So I am using the default powershell and new Windows Terminal, I have originally installed the new powershell 7 but removed it.

I also had OhmyPosh as a module but wiped all modules and command history file. It still takes a good minute for powershell to show me a prompt. Using both Windows Terminal and Powershell itself. ISE does the same.

I am on windows 10 20h2 and I believe fully up to date. Any recommendation on how to fix this issue?

2 Upvotes

14 comments sorted by

View all comments

Show parent comment

2

u/Lord_Saren May 05 '21

So for the Profiles list, i checked each one and they were all blank empty

Loading -NoProfile has the same results.

I checked my PSReadLine log file and its barely 50kb (it was just line history) Removing it didn't change anything

Ran the optimizer script and nothing.

I did redownload the latest PowerShell 7 and that runs normally. So my built-in PS just might be borked

2

u/branhama May 05 '21

Anything showing in the Application event log?