当前位置: > win10系统教程 > 详细页面

手把手还原 win10系统NeT Runtime Optimization Service占用cpu的解决步骤

发布日期:2021-01-10 11:50:16 作者:bag198技术 来 源:http://www.bag198.com
电脑已经成为我们日常生活中的必备品,长期使用电脑肯定会碰到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的解决方法就结束了,还有不知道怎么解决的小伙伴赶快来学习一下吧!更多精彩内容欢迎继续关注!

本站发布的系统与软件仅为个人学习测试使用,不得用于任何商业用途,否则后果自负,请支持购买微软正版软件!

bag198技术官网如果有侵犯您的资源,请来信告知,我们将及时处理。Copyright 2019 版权所有