Published November 13, 2026

How to set up a Dev Drive on Windows 11

Set up a Dev Drive in about 10 minutes from Windows Settings, then move your projects onto it. You'll need 50 GB of free space and admin access.

windows
dev-drive
developer-setup
wsl
pnpm

Short answer

In about 10 minutes, you can add a Dev Drive from Windows Settings and start keeping projects on it. You need an up-to-date Windows 11 PC, at least 50 GB of free space, and admin access. For what a Dev Drive is, and when to skip it, see What is a Dev Drive?.

Rough estimate, not a benchmark from this site: Microsoft has reported up to 30% better overall build times compared with Windows 11 22H2, and around 25% average improvement for cloning, building, copying files, and restoring packages. Results vary by project.

Prerequisites

  • Windows 11, updated. Microsoft requires build 10.0.22621.2338 or later. You may need one extra restart after updating before the option appears.
  • At least 50 GB of free space.
  • A local administrator account.
  • 16 GB of memory is recommended (8 GB is the minimum).
  • On a work PC, your IT team may need to turn the feature on first.

If most of your work happens in WSL, Windows' built-in Linux, read when a Dev Drive doesn't help before you use the space.

Steps

  1. Press Win+I to open Settings.
  2. Go to System → Storage → Advanced storage settings → Disks & volumes.
  3. Select Create dev drive, then Create new VHD.
  4. Use values like these (you can change the name and size):
    • Name: Workspace
    • Location: C:\Users\<you>\DevDrive — a normal folder under your user profile, not OneDrive or another cloud-sync folder
    • Size: 80 GB is a comfortable starting point (the minimum is 50 GB)
    • Format: VHDX
    • Disk type: Dynamically expanding
  5. On the format step, set Label to Workspace and Drive letter to D (or any free letter).
  6. Finish and approve the administrator prompt.

D: should show up in File Explorer. You can't turn an existing drive into a Dev Drive. A volume becomes one only when it's created and formatted as one.

The rest of this guide assumes the drive letter is D:.

What to move onto it

Projects and code. Create a folder such as D:\code and put (or clone) your Windows-side projects there. If a project already has installed dependencies, delete folders like node_modules first and reinstall on the new drive, so links and caches are rebuilt in the right place.

Package caches, optional but worth it. The global cache for installers often still lives on C:. After the drive exists, you can point these at the Dev Drive from an admin terminal, then restart your terminals:

Tool Command Old location to move or delete
npm setx /M npm_config_cache D:\packages\npm %AppData%\npm-cache or %LocalAppData%\npm-cache
pip setx /M PIP_CACHE_DIR D:\packages\pip %LocalAppData%\pip\Cache
Cargo setx /M CARGO_HOME D:\packages\cargo %USERPROFILE%\.cargo
NuGet setx /M NUGET_PACKAGES D:\packages\nuget %USERPROFILE%\.nuget\packages

Microsoft's Dev Drive docs also cover Maven, Gradle, and vcpkg. Caches can be downloaded again, so you can delete the old folders instead of moving them.

A note on pnpm. pnpm links packages instead of copying them, and those links only work when the store and the project are on the same drive. If the store isn't on the Dev Drive, pnpm falls back to copying files, and you lose most of what pnpm is for (pnpm FAQ). If you never set a store path, the first install on D: usually creates D:\.pnpm-store for you. If you did set one, point it at the Dev Drive:

pnpm config set store-dir D:\packages\pnpm-store --global

What not to put there

Don't install applications on the Dev Drive. Leave Visual Studio, the .NET SDK, the Windows SDK, and similar tools on C:. Microsoft does not recommend installing applications there. The drive is for project files, caches, and build output.

Troubleshooting

There's no "Create dev drive" button. Check your Windows version (winver), install pending updates, and restart. On a work machine, a policy may be blocking it.

The drive is missing after a restart. If you created it in Settings, it usually comes back on its own. If it doesn't, reattach it in Settings → System → Storage → Advanced storage settings → Disks & volumes.

Builds didn't get faster, and you use a third-party antivirus. The "check later" speedup is a Microsoft Defender feature, and real-time protection needs to be on. You still have a Dev Drive, just not that Defender mode.

You want it gone. In Disks & volumes, open the drive's Properties and choose Delete. If it was created as a virtual disk, detach it in Disk Management and delete the .vhdx file to get the space back. Microsoft's delete steps walk through this.

Under the hood

A Dev Drive is formatted with ReFS. Creating it in Settings marks it trusted and, if Microsoft Defender is your main antivirus with real-time protection on, turns on Defender performance mode. The longer explanation is in What is a Dev Drive?.

To confirm the drive is trusted, open an admin terminal and run:

fsutil devdrv query D:

If it says untrusted (for example, after moving the disk file to another PC), mark it trusted again with fsutil devdrv trust D:.

Some tools need extra file-system filters, which a Dev Drive leaves off by default. Docker containers running from the drive often need bindFlt and wcifs:

fsutil devdrv setfiltersallowed "bindFlt, wcifs"

This applies to all Dev Drives on the machine. Don't store the virtual disk on a USB or other removable drive — that isn't supported.

Next

Once the drive is there and a project lives on it, you're done with setup. For the "why," including why this doesn't speed up WSL, read What is a Dev Drive?.