当前位置: win10之家 > win10电脑教程 >

手把手解决win10系统NeT Runtime Optimization Service占用cpu的途径

时间:2021-03-18 06:05 作者:win10系统助手 来源:win10系统教程之家

最近小编发现win10系统用户比较关心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.NETFramework"
$dotnet2 = "v2.0.50727"
$dotnet4 = "v4.0.30319"
 
$dotnetVersion = if (Test-Path ($dotnetDir + "" + $dotnet4 + " gen.exe")) {$dotnet4} else {$dotnet2}
 
$ngen32 = $dotnetDir + "" + $dotnetVersion +" gen.exe"
$ngen64 = $dotnetDir + "64" + $dotnetVersion +" gen.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 "MicrosoftWindows.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 "MicrosoftWindows.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的解决方法就结束了,不会的小伙伴们来跟着小编一起学习吧!更多精彩内容欢迎继续关注!

win10下载站-大山系统