10
4
I have problem with slow starting of powershell prompt on Windows 10 ( Version 1703 - Creators Update ).
My hw specs ( quite fast machine ): Intel i5-7440HQ (Quad Core) / 32GB DDR4 RAM / 512 Samsung SSD hard drive.
I tried to bypass profile and execution policy but it does not change anything:
powershell -noprofile -ExecutionPolicy Bypass ( Measure-Command { powershell "Write-Host 1" } ).TotalSeconds
6,228067
My friends same laptop with Windows 10 without Creators Update runs powershell in less than 0,5 sec.
Also tried do some compilation with ngen.exe but it didn't help:
$env:path = [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
[AppDomain]::CurrentDomain.GetAssemblies() | % {
if (! $_.location) {continue}
$Name = Split-Path $_.location -leaf
Write-Host -ForegroundColor Yellow "NGENing : $Name"
ngen install $_.location | % {"`t$_"}
}
Any idea how may I investigate this issue?
Greetings
You should start by checking your profile script to see if anything is running in there that is delaying startup. My output is 1.2774795 seconds. Also, what machine, processor, memory, other things running? – Julian Knight – 2017-05-24T14:33:57.913
6
powershell is always slow to start. But Ms ignores those complains and only response "powershell is fast"
– magicandre1981 – 2017-05-24T14:36:10.057As You see -noprofile option is set. No difference. – mike – 2017-05-24T17:21:48.527
I see it. send this to MS, but they ignore any reports that powershell is slow – magicandre1981 – 2017-05-25T18:27:40.980
Yea, but explain me how same laptop ( both ordered same specs ) starts powershell in less than 0,5 s and mine over 6 s? Difference is for sure that my is with Creators Update and the second one is without this update. I tried to use also Process Monitor looking for powershell.exe process, but nothing happen for 6 s and then all is in log. – mike – 2017-05-25T20:39:16.247
1again, for me powershell is also always slow. ask this Microsoft. – magicandre1981 – 2017-05-26T15:41:55.037
70.2869261
seconds for me... if that makes you feel any better – KCD – 2019-06-05T02:23:36.110Now I have 0,2915139 seconds. Windows 10 (1809) and that is ok! Solved after reinstall. – mike – 2019-06-06T07:22:42.280