南宁下载网 - 绿色的安卓游戏、软件app应用下载站

当前位置: 首页 > win10教程 > 手把手为您win10系统NeT Runtime Optimization Service占用cpu的方法介绍

手把手为您win10系统NeT Runtime Optimization Service占用cpu的方法介绍

更新时间:2020-10-23 13:02:14
我们在使用电脑的过程中,有朋遇到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的解决方法到这里已经讲解完了,有需要的用户可以按照上述步骤设置解决问题,不会的朋友赶快来学习一下吧。