powershell提升启动速度
在powershell中输入脚本,回车,等待执行完成
$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 }
天行健,君子以自强不息