You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have anything in your PowerShell profile scripts
Sorry, I don't understand what you mean....
Is the command execution takes more time or not at all executing
When I try to Right click >> Open PowerShell in Windows Explorer, it take quite long time and as you see, there is no text displayed here.
I think affter excute command ls, PowerShell does response but it can't display any text.
It seems Trần Ngọc Khoa (@TranNgocKhoa) is using the Context Menu integration option in the MSI installer. I don't see this problem on my Win10 machine.
It seems Trần Ngọc Khoa (@TranNgocKhoa) is using the Context Menu integration option in the MSI installer. I don't see this problem on my Win10 machine.
And I don't know why but PS is booting quite slow. I have to wait for 2 - 5s until everything finish.
I use SSD for Disk C and with other machine that uses HDD, it's even slower.
PRASOON KARUNAN V (@kvprasoon) the startup time has been improved already via #8341 although there is still additional work we can do to improve it, but it's not a priority for 6.2 since we're within the "ballpark" now.
As for the context menu, the difference is the command line arguments used to start pwsh. Otherwise it should be the same.
Trần Ngọc Khoa (@TranNgocKhoa) it should never take that long to start unless you have a complicated $Profile that's being run on startup
Take a backup of command folder at HKCR\Computer\HKEY_CLASSES_ROOT\Directory\ContextMenus\PowerShell6-previewx64\shell\openpwsh\command
and change the Default key value to C:\Program Files\PowerShell\6-preview\pwsh.exe -NoExit
Trần Ngọc Khoa (@TranNgocKhoa) 6.1.x and 6.2.x-preview can be installed side-by-side, so you don't need to uninstall 6.1.1 to try 6.2-preview. Without understanding why this is affecting you, there's no action we can take to fix this since it's not reproing for anyone else right now.
Activity
kvprasoon commentedon Dec 29, 2018
What version of pwsh are you using ? Didn't get you with the step you have opened PowerShell, can you open it via
Run (Windows key + R)->pwshTranNgocKhoa commentedon Dec 29, 2018
I updated issue. I use PowerShell 6.2.0-preview.3
kvprasoon commentedon Dec 29, 2018
I cannot reproduce. Is the command execution takes more time or not at all executing ?
vexx32 commentedon Dec 29, 2018
I've seen things like this occurs in the VS Code integrated console, but never in the pwsh console itself.
Do you have anything in your PowerShell profile scripts?
TranNgocKhoa commentedon Dec 29, 2018
Sorry, I don't understand what you mean....
When I try to Right click >> Open PowerShell in Windows Explorer, it take quite long time and as you see, there is no text displayed here.
I think affter excute command
ls, PowerShell does response but it can't display any text.vexx32 commentedon Dec 29, 2018
Is this display issue also present when you start pwsh in other ways?
Run
get-content $profileto see if there is anything in your profile script.TranNgocKhoa commentedon Dec 30, 2018
If I run PowerShell by normal way like click on pwsh.exe, or shortcut, it runs properly.
I try your command and this is the result

SteveL-MSFT commentedon Dec 30, 2018
It seems Trần Ngọc Khoa (@TranNgocKhoa) is using the Context Menu integration option in the MSI installer. I don't see this problem on my Win10 machine.
kvprasoon commentedon Dec 30, 2018
Steve Lee (@SteveL-MSFT) Even with context menu integration, will there be any behavioural difference as its invoking same pwsh.exe ?
TranNgocKhoa commentedon Dec 30, 2018
And I don't know why but PS is booting quite slow. I have to wait for 2 - 5s until everything finish.
I use SSD for Disk C and with other machine that uses HDD, it's even slower.
kvprasoon commentedon Dec 30, 2018
The start time issue is tracked with #6443 . Steve Lee (@SteveL-MSFT) can you confirm and update the progress for us ?
SteveL-MSFT commentedon Dec 30, 2018
PRASOON KARUNAN V (@kvprasoon) the startup time has been improved already via #8341 although there is still additional work we can do to improve it, but it's not a priority for 6.2 since we're within the "ballpark" now.
As for the context menu, the difference is the command line arguments used to start pwsh. Otherwise it should be the same.
Trần Ngọc Khoa (@TranNgocKhoa) it should never take that long to start unless you have a complicated
$Profilethat's being run on startupTranNgocKhoa commentedon Dec 31, 2018
What should I do for now?
Is there any solution for it or should I wait for next release?
kvprasoon commentedon Dec 31, 2018
Try below,
Take a backup of command folder at
HKCR\Computer\HKEY_CLASSES_ROOT\Directory\ContextMenus\PowerShell6-previewx64\shell\openpwsh\commandand change the
Defaultkey value toC:\Program Files\PowerShell\6-preview\pwsh.exe -NoExitSteveL-MSFT commentedon Jan 1, 2019
Trần Ngọc Khoa (@TranNgocKhoa) if you uninstall PSCore6 and reinstall, does the problem still repro for you?
TranNgocKhoa commentedon Jan 1, 2019
No, problem still there
iSazonov commentedon Jan 1, 2019
What antivirus do you use? Try after removing it.
TranNgocKhoa commentedon Jan 1, 2019
I use Windows Defender. I think it doesn't cause the problem.
TranNgocKhoa commentedon Jan 7, 2019
Hello there... I'm stucking in this issue.
iSazonov commentedon Jan 7, 2019
We can not repo. Exact steps are needed to reproduce the problem. Could you repo on fresh installed OS?
TranNgocKhoa commentedon Jan 8, 2019
I just uninstall PowerShell 6.2.0-preview.3 and reinstall version 6.11 and It works.
SteveL-MSFT commentedon Jan 8, 2019
Trần Ngọc Khoa (@TranNgocKhoa) if you reinstall 6.2.0-preview.3 does it work?
TranNgocKhoa commentedon Jan 9, 2019
Steve Lee (@SteveL-MSFT) No, I uninstalled 6.11 then installed 6.20 preview3. It doesn't work.
SteveL-MSFT commentedon Jan 9, 2019
Trần Ngọc Khoa (@TranNgocKhoa) 6.1.x and 6.2.x-preview can be installed side-by-side, so you don't need to uninstall 6.1.1 to try 6.2-preview. Without understanding why this is affecting you, there's no action we can take to fix this since it's not reproing for anyone else right now.