随着电脑的使用率越来越高,我们有时候可能会遇到win10系统NET Runtime Optimization Service占用cpu的问题,如果我们遇到了win10系统NET Runtime Optimization Service占用cpu的问题,要怎么处理win10系统NET Runtime Optimization Service占用cpu呢?我们只用1、以管理员身份运行windows powershell ; 2、复制下面代码,在windows powershell界面直接粘贴进去并按下回车键执行:就行了;接下来给大家带来win10系统NET Runtime Optimization Service占用cpu的详细解决方法:
步骤:
1、以管理员身份运行windows powershell ;
2、复制下面代码,在windows powershell界面直接粘贴进去并按下回车键执行:
# Script to force the .NET Framework optimizATIon service to run at maximum speed.
$iswin8Plus = [Environment]::OSVersion.Version -ge (new-object 'Version' 6,2)
$dotnetDir = [environment]::GetEnvironmentVariable("windir","Machine") + "\\Microsoft.NET\\Framework"
$dotnet2 = "v2.0.50727"
$dotnet4 = "v4.0.30319"
$dotnetVersion = if (Test-Path ($dotnetDir + "\\" + $dotnet4 + "\\ngen.exe")) {$dotnet4} else {$dotnet2}
$ngen32 = $dotnetDir + "\\" + $dotnetVersion +"\\ngen.exe"
$ngen64 = $dotnetDir + "64\\" + $dotnetVersion +"\\ngen.exe"
$ngenArgs = " executeQueuedItems"
$is64Bit = Test-Path $ngen64
#32-bit NGEN -- appropriate for 32-bit and 64-bit machines
Write-Host("Requesting 32-bit NGEN")
Start-Process -wait $ngen32 -ArgumentList $ngenArgs
#64-bit NGEN -- appropriate for 64-bit machines
if ($is64Bit) {
Write-Host("Requesting 64-bit NGEN")
Start-Process -wait $ngen64 -ArgumentList $ngenArgs
}
#AutoNGEN for Windows 8+ machines
if ($iswin8Plus) {
Write-Host("Requesting 32-bit AutoNGEN -- Windows 8+")
schTasks /run /Tn "\\Microsoft\\Windows\\.NET Framework\\.NET Framework NGEN v4.0.30319"
}
#64-bit AutoNGEN for Windows 8+ machines
if ($isWin8Plus -and $is64Bit) {
Write-Host("Requesting 64-bit AutoNGEN -- Windows 8+")
schTasks /run /Tn "\\Microsoft\\Windows\\.NET Framework\\.NET Framework NGEN v4.0.30319 64"
}
通过以操作可以让卡主的程序快速完成操作,此外我们可以将系统中的Windows Search、Superfetch服务关闭。
然后打开【计划任务】,依次展开Microsoft->Windows->ApplicATIon Experience,关闭Microsoft Compatibility Appraiser,能让电脑提升不少的速度哦!
通过小编的解答,大家都知道该怎么解决win10系统NeT Runtime Optimization Service占用cpu的解决方法了吧如果你的电脑也遇到了这种情况,可以试试上面的方法哦。小编就讲解到这里了,我们下期再会!
293 个用户觉得很有用
发表评论