Windows – Powershell very slow to open/respond

powershellwindows 7

I am having an issue running PowerShell 3.0 on Windows 7 64-bit. It takes a very
long time to open/start when run it. It is also quite sluggish in response to
just about anything.

I believe this may be due to the fact that my profile is stored in my documents,
and the my documents folder is synched to our network.

Is there any way that I can move the location of my profile so that I can have
it local instead of over the network?

Best Answer

PowerShell relies on the .NET Framework, you can try updating that.

This script also helped my speed

$Env:PATH = [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
[AppDomain]::CurrentDomain.GetAssemblies() | % {
  $pt = $_.Location
  if (! $pt) {continue}
  if ($cn++) {''}
  $na = Split-Path -Leaf $pt
  Write-Host -ForegroundColor Yellow "NGENing $na"
  ngen install $pt
}
Related Question