個人的 Windows11 セットアップ

毎回やっている初期設定を上から順にまとめました。
あくまで自分用の構成なので、入れるソフトや設定は好みで決めています。

Windows11 をインストール

インストールメディアは公式のメディア作成ツールではなく Rufus で作ります。
USB メモリにインストールメディアを書き込んだら、その USB から起動して Windows11 をインストールします。

Rufus - 起動可能なUSBドライブを簡単に作成できます
rufus.ie

Rufus のセットアップ画面
設定画面

ディスプレイ設定

設定 → システム → ディスプレイ から、解像度、拡大率、リフレッシュレートを使っているモニターに合わせます。

Windows Update

設定 → Windows Update から、更新が出てこなくなるまで繰り返し当てます。

PowerShell の実行ポリシーを変更

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

ソフトをまとめてインストール

パッケージ ID を配列に並べて、まとめてインストールします。

$packageIds = @(
    # ブラウザ
    'Google.Chrome'

    # VPN
    'NordSecurity.NordVPN'

    # ゲーム
    'Valve.Steam'
    'EpicGames.EpicGamesLauncher'

    # メディア
    'mpv.net'

    # AI
    'Anthropic.Claude'

    # コミュニケーション
    'Discord.Discord'
    'RomTenma.Siki'

    # ダウンロード
    'yt-dlp.yt-dlp'
    'yt-dlp.FFmpeg'

    # ユーティリティ
    'M2Team.NanaZip'
)

foreach ($packageId in $packageIds) {
    winget install -e --id $packageId --accept-source-agreements --accept-package-agreements
}

winget で入らないソフトを手動でインストール

winget に無かったり、winget 経由だとうまく動かなかったりするドライバやソフトは個別に入れます。
Nvidia App - GeForce ドライバと Nvidia Broadcast を入れます。
Aqua Voice - 音声入力ツール。
MOTU M Series - オーディオインターフェースのドライバ。

サウンド設定

設定 → システム → サウンド から、既定の出力デバイスと入力デバイスを使う機材に切り替えます。

開発環境を構築

Microsoft 公式の WindowsDeveloperConfig で、開発ツールを一括で入れます。

GitHub - microsoft/WindowsDeveloperConfig: Automate the setup and configuration of your Windows development environment.
github.com

管理者の PowerShell で実行します。

winget configure --enable
$config = "$env:TEMP\dev-config.winget"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/microsoft/WindowsDeveloperConfig/main/windows-dev-config/dev-config.winget" -OutFile $config
winget configure -f $config --accept-configuration-agreements --disable-interactivity

これで入るものは次のとおりです。

不要なアプリの削除と設定変更

Windows は仕様がよく変わるので、手作業で追うより、オープンソースで継続的に保守されているツールに任せたほうがいいです。ここでは Win11Debloat を使います。

GitHub - Raphire/Win11Debloat: A simple, lightweight PowerShell script that allows you to remove pre-installed apps, disable telemetry, as well as perform various other changes to declutter and customize your Windows experience. Win11Debloat works for both Windows 10 and Windows 11.
github.com

次のワンライナーで起動します。

& ([scriptblock]::Create((irm "https://debloat.raphi.re/")))

GUI が立ち上がったら、右上の ≡ ボタンから Import config を選び、下の JSON を保存したファイルを読み込んで適用します。
変更を元に戻したくなったら、同じ ≡ ボタンの Restore backup から戻せます。

{
    "Apps":  [
                 "Microsoft.WindowsAlarms",
                 "Microsoft.BingNews",
                 "Microsoft.BingSearch",
                 "Microsoft.BingWeather",
                 "Microsoft.WindowsCalculator",
                 "Microsoft.WindowsCamera",
                 "Clipchamp.Clipchamp",
                 "MicrosoftWindows.CrossDevice",
                 "Microsoft.Windows.DevHome",
                 "MicrosoftCorporationII.MicrosoftFamily",
                 "Microsoft.WindowsFeedbackHub",
                 "Microsoft.GetHelp",
                 "Microsoft.ZuneMusic",
                 "Microsoft.Todos",
                 "Microsoft.Paint",
                 "Microsoft.YourPhone",
                 "Microsoft.PowerAutomateDesktop",
                 "MicrosoftCorporationII.QuickAssist",
                 "Microsoft.ScreenSketch",
                 "Microsoft.MicrosoftSolitaireCollection",
                 "Microsoft.WindowsSoundRecorder",
                 "Microsoft.MicrosoftStickyNotes",
                 "Microsoft.GamingApp",
                 "Microsoft.XboxGamingOverlay"
             ],
    "Tweaks":  [
                   {
                       "Value":  true,
                       "Name":  "DisableSettings365Ads"
                   },
                   {
                       "Value":  true,
                       "Name":  "EnableDarkMode"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableBitlockerAutoEncryption"
                   },
                   {
                       "Value":  true,
                       "Name":  "HideSearchTb"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableTelemetry"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableWidgets"
                   },
                   {
                       "Value":  true,
                       "Name":  "HideDupliDrive"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableLockscreenTips"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableStartPhoneLink"
                   },
                   {
                       "Value":  true,
                       "Name":  "StartAllAppsList"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableMouseAcceleration"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableStartRecommended"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableStoreSearchSuggestions"
                   },
                   {
                       "Value":  true,
                       "Name":  "PreventUpdateAutoReboot"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableDeliveryOptimization"
                   },
                   {
                       "Value":  true,
                       "Name":  "HideTaskview"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableGameBarIntegration"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableDVR"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableSuggestions"
                   },
                   {
                       "Value":  true,
                       "Name":  "ShowKnownFileExt"
                   },
                   {
                       "Value":  true,
                       "Name":  "ClearStartAllUsers"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableDesktopSpotlight"
                   },
                   {
                       "Value":  true,
                       "Name":  "HideOnedrive"
                   },
                   {
                       "Value":  true,
                       "Name":  "HideGallery"
                   },
                   {
                       "Value":  true,
                       "Name":  "EnableEndTask"
                   },
                   {
                       "Value":  true,
                       "Name":  "ShowHiddenFolders"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableSettingsHome"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableStickyKeys"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableFindMyDevice"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableUpdateASAP"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableBing"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableDragTray"
                   },
                   {
                       "Value":  true,
                       "Name":  "ExplorerToThisPC"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableEdgeAds"
                   },
                   {
                       "Value":  true,
                       "Name":  "DisableLocationServices"
                   }
               ],
    "Deployment":  [
                       {
                           "Value":  0,
                           "Name":  "UserSelectionIndex"
                       },
                       {
                           "Value":  0,
                           "Name":  "AppRemovalScopeIndex"
                       },
                       {
                           "Value":  true,
                           "Name":  "CreateRestorePoint"
                       },
                       {
                           "Value":  true,
                           "Name":  "RestartExplorer"
                       }
                   ],
    "Version":  "1.0"
}

Git の初期設定

git config --global user.name "名前"
git config --global user.email "メールアドレス"

GitHub CLI でログイン

gh auth login

Claude Code をインストール

irm https://claude.ai/install.ps1 | iex; if($?){ $b=Join-Path $HOME ".local\bin"; $p=[Environment]::GetEnvironmentVariable("Path","User"); if(($p -split ';') -notcontains $b){ [Environment]::SetEnvironmentVariable("Path","$p;$b","User") } }

残りの細かい調整

スリープ抑止:PowerToys の Awake を無期限にして、長時間の書き出しやエンコード中にスリープ・画面オフさせないようにします。

スタートアップの整理:タスクマネージャーのスタートアップ タブで、不要な自動起動を無効にします。