Forum Discussion
PowerShell ISE slow after launch
Hi,
I have an issue with PowerShell ISE on windows 10 OS, after I launch ISE its take 10 minutes to give options for run script, till then i see only stop operation button.
Please help me fix this , it hindering my work.
Attached screenshot. Thanks.
3 Replies
- Vern_AndersonCopper Contributor
How many third party modules do you have installed?
What do all of your PowerShell profiles contain?$PROFILE
$PROFILE.AllUsersAllHosts
$PROFILE.AllUsersCurrentHost
$PROFILE.CurrentUserAllHosts
$PROFILE.CurrentUserCurrentHostThe output of each of these will show you the file path to check
1. Does the file by that name exist in the path?
2. If yes what's inside?The contents of those files and or how many modules you have can affect how long it takes to load ISE or how long it takes for the red square to stop running.
Start-Process powershell_ise -ArgumentList -NoProfile
How long does it take to load when you run that command?- AzharRahmanCopper Contributor
Vern_Anderson thanks for your response.
From PowerShell below are the paths missing the profile.ps1 and Microsoft.PowerShell_profile.ps1
PS C:\WINDOWS\system32> $PROFILE.AllUsersAllHosts
C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1
PS C:\WINDOWS\system32> $PROFILE.AllUsersCurrentHost
C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1
PS C:\WINDOWS\system32> $PROFILE.CurrentUserAllHosts
C:\Users\azhar\Documents\WindowsPowerShell\profile.ps1This command also takes same amount of time.
Start-Process powershell_ise -ArgumentList -NoProfile
I have attached the list of modules installed.
- VernAndersonCopper ContributorI don't see any modules that jump out at me as unusual, in your modules txt file.
Where the profile path does exist, I would open up those PS1 files and see what is in the profile that might be slowing it down. Sorry I don't have any further ideas at the moment.