Answers for "powershell profile takes a long time to load"

0

powershell profile takes a long time to load

$env:PATH = [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
[AppDomain]::CurrentDomain.GetAssemblies() | ForEach-Object {
    $path = $_.Location
    if ($path) { 
        $name = Split-Path $path -Leaf
        Write-Host -ForegroundColor Yellow "`r`nRunning ngen.exe on '$name'"
        ngen.exe install $path /nologo
    }
}
Posted by: Guest on February-19-2022

Code answers related to "powershell profile takes a long time to load"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language