很多人都懂一些简单的电脑系统问题的解决方案,但是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"
	}
	
	
	
	通过以操作可以让卡主的程序快速完成操作,此外我们可以将系统中的Windows Search、Superfetch服务关闭。
	然后打开【计划任务】,依次展开Microsoft->Windows->Application Experience,关闭Microsoft Compatibility Appraiser,能让电脑提升不少的速度哦!
 
上面就是关于win10系统NeT Runtime Optimization Service占用cpu的解决方法有需要的用户可以按照上述步骤设置解决问题,小编会竭尽所能把大家想知道的电脑知识分享开来。