windows:tasks

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:tasks [2020/09/05 00:45] – [PowerShell で vEthernet のレジストリを削除してみる] ともやんwindows:tasks [2020/09/11 19:10] (現在) ともやん
行 1: 行 1:
-<html> +~~CLOSETOC~~
-  <style> +
-    #result pre, #mincode pre { +
-      overflow: hidden; +
-      font-size: 10px; +
-    } +
-    #result_long pre, #mincode_long pre  { +
-      height: 250px; +
-      overflow: scroll; +
-      overflow-x: hidden; +
-      font-size: 10px; +
-    } +
-    #mintbl table { +
-      font-size: 12px; +
-    } +
-    .dokuwiki .plugin_wrap table { +
-      width: auto; +
-    } +
-    #logo { +
-      background-color: white; +
-      padding: 10px; +
-      width: fit-content; +
-    } +
-    #logo p { +
-      margin: 0; +
-    } +
-  </style> +
-</html>+
 ====== Windows タスク ====== ====== Windows タスク ======
 +Windows 10 では、ユーザーが便利で快適に Windows を利用できるように様々なサービスやプロセスが沢山自動で動いています。\\
 +
 +このページはそれらの役割を紹介する予定ですが、現在はそのような内容にはなっていません😅💦笑\\
 +
 +Windows が自動で行うタスクが、場合によっては高負荷に感じることがあるかもしれません。そのような時に参考になれば幸いです。\\
 +
 +{{windows:windows_10_insider_previews_update_network_bug_007.png?470|Hyper-V Virtual Ethernet Adapter #102 個}}\\
 +Windows 10 Insider Previews の WSL2 ではこんな珍しい現象も起こることがあるようです。😅💦💦💦\\
 +101匹の未接続な Hyper-V Virtual Ethernet Adapter と #102 個目が Up しています。\\
 +
 +これが直接の原因なのか特定はできていませんが、ネットワーク系のサービスが非常に高負荷になりました。\\
 +
 +これらで起きる現象をねじ伏せて、以下のようなPCの高負荷から抜けた状態で改善を待ちます。\\
 {{windows:windows_10_tasks_disabled_001.png?800|Windows 10 Tasks Disabled}}\\ {{windows:windows_10_tasks_disabled_001.png?800|Windows 10 Tasks Disabled}}\\
  
行 37: 行 23:
  
 Modern Setup Host が動作して CPU 使用率が高めな場合は...\\ Modern Setup Host が動作して CPU 使用率が高めな場合は...\\
-Windows Update が進行中である。\\+Windows Update が進行中である。つまり、特に問題はない。\\
 {{windows:setuphost_windows_update_001.png?470|Windows Update}}\\ {{windows:setuphost_windows_update_001.png?470|Windows Update}}\\
  
行 51: 行 37:
 C:\Windows\System32\CompatTelRunner.exe C:\Windows\System32\CompatTelRunner.exe
 </code> </code>
 +{{windows:compattelrunner_cpu_usage_001.png?800|CompatTelRunner CPU Usage 001}}\\
  
 ===== プロセス: Runtime Broker ===== ===== プロセス: Runtime Broker =====
行 119: 行 106:
 </code> </code>
 {{windows:utcsvc_cpu_usage_001.png?800|}}\\ {{windows:utcsvc_cpu_usage_001.png?800|}}\\
 +
 +===== プロセス: WMI Provider Host =====
 +<code>
 +C:\Windows\System32\wbem\WmiPrvSE.exe
 +</code>
 +
 +===== プロセス: Microsoft® Windows システムの保護のバックグラウンド タスク。 =====
 +<code>
 +C:\Windows\System32\SrTasks.exe
 +</code>
  
 ===== 地球を温暖化しているサービスを問答無用で停止してみる ===== ===== 地球を温暖化しているサービスを問答無用で停止してみる =====
行 241: 行 238:
 <WRAP prewrap 100% #mincode> <WRAP prewrap 100% #mincode>
 <code> <code>
-$ sudo sc config "fdPHost" start= disabled+$ sudo sc config "fdPHost" start=disabled
 [SC] ChangeServiceConfig SUCCESS [SC] ChangeServiceConfig SUCCESS
-$ sudo sc config "FDResPub" start= disabled+$ sudo sc config "FDResPub" start=disabled
 [SC] ChangeServiceConfig SUCCESS [SC] ChangeServiceConfig SUCCESS
-$ sudo sc config "netprofm" start= disabled+$ sudo sc config "netprofm" start=disabled
 [SC] ChangeServiceConfig SUCCESS [SC] ChangeServiceConfig SUCCESS
-$ sudo sc config "SSDPSRV" start= disabled+$ sudo sc config "SSDPSRV" start=disabled
 [SC] ChangeServiceConfig SUCCESS [SC] ChangeServiceConfig SUCCESS
-$ sudo sc config "NetSetupSvc" start= disabled+$ sudo sc config "NetSetupSvc" start=disabled
 [SC] ChangeServiceConfig SUCCESS [SC] ChangeServiceConfig SUCCESS
-$ sudo sc config "NlaSvc" start= disabled+$ sudo sc config "NlaSvc" start=disabled
 [SC] ChangeServiceConfig SUCCESS [SC] ChangeServiceConfig SUCCESS
-$ sudo sc config "NVDisplay.ContainerLocalSystem" start= disabled+$ sudo sc config "NVDisplay.ContainerLocalSystem" start=disabled
 [SC] ChangeServiceConfig SUCCESS [SC] ChangeServiceConfig SUCCESS
-$ sudo sc config "DiagTrack" start= disabled+$ sudo sc config "DiagTrack" start=disabled
 [SC] ChangeServiceConfig SUCCESS [SC] ChangeServiceConfig SUCCESS
 </code> </code>
行 273: 行 270:
 WiFi の SSID も利用できるネットワークの表示の接続インジケータも何も表示されない。\\ WiFi の SSID も利用できるネットワークの表示の接続インジケータも何も表示されない。\\
 {{windows:windows_10_tasks_disabled_trade-off_002.png?300|Windows 10 Tasks disabled Trade-off 002}}\\ {{windows:windows_10_tasks_disabled_trade-off_002.png?300|Windows 10 Tasks disabled Trade-off 002}}\\
 +WiFi が GUI から操作できない場合は、PowerShell で以下のコマンドを実行すると WiFi ネットワークを操作できる。\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ netsh wlan show networks
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +
 +インターフェイス名 : Wi-Fi
 +現在 2 のネットワークが表示されています。
 +
 +SSID 1 : Orange_24G
 +    ネットワークの種類            : インフラストラクチャ
 +    認証          : WPA2-パーソナル
 +    暗号化              : CCMP
 +
 +SSID 2 : TomoyanWRT-GL24G
 +    ネットワークの種類            : インフラストラクチャ
 +    認証          : WPA2-パーソナル
 +    暗号化              : CCM
 +</code>
 +</WRAP>
 +
 +接続を **Orange_24G** に切り替える場合。\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ netsh wlan connect Orange_24G
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +接続要求が正常に完了しました。
 +</code>
 +</WRAP>
  
 Windows Update が正常動作しない。\\ Windows Update が正常動作しない。\\
行 285: 行 317:
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code powershell> <code powershell>
-$ sudo pwsh -c 'Get-NetAdapter -Name vEthernet* | Select InterfaceDescription,InstanceId | ForEach-Object { Write-Host "Deleting: "$_.InterfaceDescription -ForegroundColor Green; Remove-Item "HKLM:\SYSTEM\ControlSet001\Services\Tcpip\Parameters\Adapters\$($_.InstanceId)"; Remove-Item "HKLM:\SYSTEM\ControlSet001\Services\Tcpip\Parameters\Interfaces\$($_.InstanceId)"; Remove-Item "HKLM:\SYSTEM\ControlSet001\Services\Tcpip6\Parameters\Interfaces\$($_.InstanceId)"; }'+$ sudo pwsh -c 'Get-NetAdapter -Name vEthernet* | Select InterfaceDescription,InstanceId | ForEach-Object { Write-Host "Deleting: "$_.InterfaceDescription -ForegroundColor Green; Remove-Item "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Adapters\$($_.InstanceId)"; Remove-Item "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\$($_.InstanceId)"; Remove-Item "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces\$($_.InstanceId)"; }'
 </code> </code>
 </WRAP> </WRAP>
行 392: 行 424:
 [[https://stackoverflow.com/questions/61213032/get-netadapter-from-get-vmswitch|powershell - Get-NetAdapter from Get-VMSwitch - Stack Overflow]]\\ [[https://stackoverflow.com/questions/61213032/get-netadapter-from-get-vmswitch|powershell - Get-NetAdapter from Get-VMSwitch - Stack Overflow]]\\
 [[https://www.vwnet.jp/Windows/PowerShell/2019052501/SetIPAddress.htm|PowerShell で IPv4/IPv6 アドレスを設定をする]]\\ [[https://www.vwnet.jp/Windows/PowerShell/2019052501/SetIPAddress.htm|PowerShell で IPv4/IPv6 アドレスを設定をする]]\\
 +[[https://stackoverflow.com/questions/31191105/using-powershell-to-remove-non-present-network-adapters|registry - Using Powershell to remove non present network adapters - Stack Overflow]]\\
  
  • windows/tasks.1599234357.txt.gz
  • 最終更新: 2020/09/05 00:45
  • by ともやん