手把手练习win10系统NeT Runtime Optimization Service占用cpu的操作步骤

时间:2020-05-21 作者:admin
今天小编告诉大家如何处理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"
}

win10 mscorsvw.exe可以禁止吗?.NET Runtime Optimization Service占用cpu的解决方法

通过以操作可以让卡主的程序快速完成操作,此外我们可以将系统中的Windows Search、Superfetch服务关闭。
然后打开【计划任务】,依次展开Microsoft->Windows->Application Experience,关闭Microsoft Compatibility Appraiser,能让电脑提升不少的速度哦!

是不是困扰大家许久的win10系统NeT Runtime Optimization Service占用cpu的解决方法问题已经解决了呢?如果你的电脑也遇到了这种情况,可以试试上面的方法哦。希望这个小小的经验能够帮助大家不再烦恼!