当前位置: win7下载网 > win10系统教程 > win10系统NeT Runtime Optimization Service占用cpu的修复步骤

win10系统NeT Runtime Optimization Service占用cpu的修复步骤

时间:2021-09-23 18:18:35 来源:www.cnomit.cn 作者:佚名 浏览次数:

大家对电脑都爱不释手,但偶尔会碰见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的解决方法就给大家介绍到这边了,有碰到一样情况的用户们可以采取上面的方法来处理,希望对大家有所帮助。

相关教程