🕌
Windows11 お節介(提案・おすすめ)を消す
PowerShellで一括設定
スタートメニューのおすすめを無効化
# スタートメニューのおすすめを無効化
$registryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"
# おすすめアプリを無効化
Set-ItemProperty -Path $registryPath -Name "SystemPaneSuggestionsEnabled" -Value 0
Set-ItemProperty -Path $registryPath -Name "SubscribedContent-338388Enabled" -Value 0
Set-ItemProperty -Path $registryPath -Name "SubscribedContent-338389Enabled" -Value 0
Write-Host "スタートメニューのおすすめを無効化しました" -ForegroundColor Green
エクスプローラーのおすすめを非表示
# Windows 11のおすすめセクションを無効化
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowRecommendations /t REG_DWORD /d 0 /f
# エクスプローラーを再起動
Stop-Process -Name explorer -Force
Start-Process explorer
クイックアクセスの履歴を非表示
REM 最近使ったファイルを非表示
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v ShowRecent /t REG_DWORD /d 0 /f
REM よく使うフォルダーを非表示
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v ShowFrequent /t REG_DWORD /d 0 /f
REM 履歴をクリア
del /F /Q "%APPDATA%\Microsoft\Windows\Recent\*"
del /F /Q "%APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\*"
del /F /Q "%APPDATA%\Microsoft\Windows\Recent\CustomDestinations\*"
アプリの提案を非表示
# 設定アプリの提案を無効化
$path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"
# すべての提案を無効化
@(
"SubscribedContent-338393Enabled",
"SubscribedContent-353694Enabled",
"SubscribedContent-353696Enabled",
"SubscribedContent-310093Enabled"
) | ForEach-Object {
Set-ItemProperty -Path $path -Name $_ -Value 0
}
ロック画面のおすすめを非表示
# Cortanaをロック画面で無効化
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Lock Screen" /v AllowCortanaAboveLock /t REG_DWORD /d 0 /f
# Windows スポットライトの広告を無効化
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v RotatingLockScreenOverlayEnabled /t REG_DWORD /d 0 /f
すべてのおすすめを消す
disable_all_recommendations.ps1 で作成して実行
# Windows 10/11のすべてのおすすめ・広告を無効化するスクリプト
Write-Host "Windowsのおすすめ・広告を完全無効化します..." -ForegroundColor Yellow
# ContentDeliveryManagerの設定
$cdm = "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"
$settings = @{
"ContentDeliveryAllowed" = 0
"FeatureManagementEnabled" = 0
"OemPreInstalledAppsEnabled" = 0
"PreInstalledAppsEnabled" = 0
"PreInstalledAppsEverEnabled" = 0
"RotatingLockScreenEnabled" = 0
"RotatingLockScreenOverlayEnabled" = 0
"SilentInstalledAppsEnabled" = 0
"SoftLandingEnabled" = 0
"SystemPaneSuggestionsEnabled" = 0
"SubscribedContent-310093Enabled" = 0
"SubscribedContent-338388Enabled" = 0
"SubscribedContent-338389Enabled" = 0
"SubscribedContent-338393Enabled" = 0
"SubscribedContent-353694Enabled" = 0
"SubscribedContent-353696Enabled" = 0
"SubscribedContent-353698Enabled" = 0
}
foreach ($key in $settings.Keys) {
Set-ItemProperty -Path $cdm -Name $key -Value $settings[$key] -Force
Write-Host " 無効化: $key" -ForegroundColor Gray
}
# エクスプローラーの設定
$explorer = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
Set-ItemProperty -Path $explorer -Name "ShowSyncProviderNotifications" -Value 0 -Force
Set-ItemProperty -Path $explorer -Name "Start_IrisRecommendations" -Value 0 -Force
# Windows 11特有の設定
if ([System.Environment]::OSVersion.Version.Build -ge 22000) {
Set-ItemProperty -Path $explorer -Name "Start_RecommendedSection" -Value 0 -Force
Write-Host "Windows 11のおすすめセクションを無効化" -ForegroundColor Cyan
}
# 検索の設定
$search = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search"
Set-ItemProperty -Path $search -Name "BingSearchEnabled" -Value 0 -Force
Write-Host "`n完了!エクスプローラーを再起動します..." -ForegroundColor Green
Stop-Process -Name explorer -Force
Start-Sleep -Seconds 2
Start-Process explorer
Write-Host "すべてのおすすめ・広告が無効化されました!" -ForegroundColor Green
ゲームバーとXboxの広告を非表示
reg add "HKCU\Software\Microsoft\GameBar" /v UseNexusForGameBarEnabled /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\GameBar" /v ShowGameModeNotifications /t REG_DWORD /d 0 /f
グループポリシーで組織全体に適用(Pro版以上)
1. gpedit.mscを実行
2. コンピューターの構成 → 管理用テンプレート → Windows コンポーネント
クラウド コンテンツ
3. 「Microsoft コンシューマー エクスペリエンスを無効にする」を有効
トラブルシューティング
設定が元に戻ってしまう
# 設定を保護するスクリプト
$task = @"
powershell -WindowStyle Hidden -Command "Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' -Name 'SystemPaneSuggestionsEnabled' -Value 0"
"@
# タスクスケジューラーに登録
schtasks /create /tn "DisableRecommendations" /tr $task /sc onlogon /rl highest /f
一部の設定が効かない
完全リセット方法
# ContentDeliveryManagerをリセット
Remove-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Recurse -Force
New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Force
# 再度設定を適用
.\disable_all_recommendations.ps1
設定のバックアップと復元
現在の設定をバックアップ
# 設定をエクスポート
reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "backup_cdm.reg"
reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" "backup_explorer.reg"
Write-Host "設定をバックアップしました" -ForegroundColor Green
設定を復元
# 設定をインポート
reg import "backup_cdm.reg"
reg import "backup_explorer.reg"
Write-Host "設定を復元しました" -ForegroundColor Green
引用
Discussion