タスクスケジューラーの不要タスクを無効化する | toshiのブログ

toshiのブログ

日頃、科学技術について調査していることや趣味でやっていることなどを紹介していきます。

不要なタスクが多数動作していたので、下記の schtasks コマンドで無効化しました。

管理者権限のPowershell か 管理者権限のコマンドプロンプト上で動作します。

schtasks コマンドの使い方は下記のとおり

 

1.タスク名を指定してタスクの状態を確認する

schtasks /Query /v /FO list /TN "タスク名"| findstr "状態:"

 

2.タスク名を指定してタスクを実行する

schtasks /Run /TN "タスク名"

 

3.タスク名を指定してタスクを停止する

schtasks /End /TN "タスク名"

 

4.タスク名を指定してタスクを削除する

schtasks /Delete /TN "タスク名"

 

5.タスク名を指定してタスクを有効化する

schtasks /Change /Enable /TN "タスク名"

 

6.タスク名を指定してタスクを無効化する

schtasks /Change /Disable /TN "タスク名"

 

私のPCでは、CPU負荷を高めている不要タスクを無効化するため、下記の処理を実行しました。

 

rem Adobe製品の管理
schtasks /change /Disable /TN "Adobe Acrobat Update Task"

rem MediaPlayerの共有サービス
schtasks /change /Disable /TN "\Microsoft\Windows\Windows Media Sharing\UpdateLibrary"

rem カスタマー エクスペリエンス向上プログラム(マイクロソフトにPC内の情報が送信されてしまう)
schtasks /change /Disable /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
schtasks /change /Disable /TN "\Microsoft\Windows\Application Experience\ProgramDataUpdater"
schtasks /change /Disable /TN "\Microsoft\Windows\Application Experience\StartupAppTask"
schtasks /change /Disable /TN "\Microsoft\Windows\Application Experience\StartupAppTask"
schtasks /change /Disable /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
schtasks /change /Disable /TN "\Microsoft\Windows\Autochk\Proxy"
schtasks /change /Disable /TN "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
schtasks /change /Disable /TN "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
schtasks /change /Disable /TN "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
schtasks /change /Disable /TN "\Microsoft\Windows\CloudExperienceHost\CreateObjectTask"

rem システムのパフォーマンスおよび性能を測定します
schtasks /change /Disable /TN "\Microsoft\Windows\Maintenance\WinSAT"

rem Xboxゲーム
schtasks /change /Disable /TN "\Microsoft\XblGameSave\XblGameSaveTask"
schtasks /change /Disable /TN "\Microsoft\XblGameSave\XblGameSaveTaskLogon"

rem タスクによる CPU 高負荷
schtasks /change /Disable /TN "\Microsoft\Windows\Diagnosis\Scheduled"
schtasks /change /Disable /TN "\Microsoft\Windows\DiskFootprint\Diagnostics"

rem Microsoft-Windows-DiskDiagnosticDataCollector
rem 不要 ディスクとシステムに関する全般的な情報がWindowsディスク診断ツールによってMicrosoftに報告するタスク。 
schtasks /change /Disable /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector"
schtasks /change /Disable /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver"

rem 自動報告する
schtasks /change /Disable /TN "\Microsoft\Windows\Windows Error Reporting\QueueReporting"

rem 位置情報通知のタスク
schtasks /change /Disable /TN "\Microsoft\Windows\Location\Location"
schtasks /change /Disable /TN "\Microsoft\Windows\Location\WindowsActionDialog"

rem さまざまな地図関連のトースト。 オフライン用にダウンロードした地図の更新データをチェック
schtasks /change /Disable /TN "\Microsoft\Windows\Maps\MapsToastTask"
schtasks /change /Disable /TN "\Microsoft\Windows\Maps\MapsUpdateTask"

rem 電源管理の分析のみ行う
schtasks /change /Disable /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem"

rem Google 関連のタスク
schtasks /change /Disable /TN "GoogleUpdateTaskMachineCore"
schtasks /change /Disable /TN "GoogleUpdateTaskMachineUA"

rem Officeの利用状況をアップロードする
schtasks /change /Disable /TN "\Microsoft\Office\OfficeTelemetryAgentFallBack2016"
schtasks /change /Disable /TN "\Microsoft\Office\OfficeTelemetryAgentLogOn2016"

rem デフラグ
schtasks /change /Disable /TN "\Microsoft\Windows\Defrag\ScheduledDefrag"

rem 企業固有のモバイル デバイス管理の構成設定を指定する
schtasks /change /Disable /TN "\Microsoft\Windows\Feedback\Siuf\DmClient"
schtasks /change /Disable /TN "\Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload"

rem File History
schtasks /change /Disable /TN "\Microsoft\Windows\FileHistory\File History (maintenance mode)"

rem ユーザーの言語リストに一致する言語コンポーネントをインストールします
schtasks /change /Disable /TN "\Microsoft\Windows\LanguageComponentsInstaller\Installation"
schtasks /change /Disable /TN "\Microsoft\Windows\LanguageComponentsInstaller\ReconcileLanguageResources"
schtasks /change /Disable /TN "\Microsoft\Windows\LanguageComponentsInstaller\Uninstallation"

rem 位置情報に関するタスク
schtasks /change /Disable /TN "\Microsoft\Windows\Location\Notifications"
schtasks /change /Disable /TN "\Microsoft\Windows\Location\WindowsActionDialog"

rem モバイル ブロードバンド アカウント エクスペリエンス メタデータ パーサー
schtasks /change /Disable /TN "\Microsoft\Windows\Mobile Broadband Accounts\MNO Metadata Parser"

rem ネットワーク情報コレクター
schtasks /change /Disable /TN "\Microsoft\Windows\NetTrace\GatherNetworkInfo"

rem 基礎となるインターフェイスがダウンした場合、モビリティが有効化された VPN 接続の切り替えのサポートを提供します。
schtasks /change /Disable /TN "\Microsoft\Windows\Ras\MobilityManager"

rem ディスク不足解消のため「コンポーネントストア」のクリーンアップ
schtasks /change /Disable /TN "\Microsoft\Windows\Servicing\StartComponentCleanup"

rem ファミリー機能
schtasks /change /Disable /TN "\Microsoft\Windows\Shell\FamilySafetyMonitor"
schtasks /change /Disable /TN "\Microsoft\Windows\Shell\FamilySafetyRefreshTask"

rem 検索インデックスを最新の状態に保ちます
schtasks /change /Disable /TN "\Microsoft\Windows\Shell\IndexerAutomaticMaintenance"

rem UPnPHost サービスを自動開始に設定
schtasks /change /Disable /TN "\Microsoft\Windows\UPnP\UPnPHostConfig"

rem キューに登録されたレポートは、Windows エラー報告タスクにより処理されます。
schtasks /change /Disable /TN "\Microsoft\Windows\Windows Error Reporting\QueueReporting"