You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
how to auto mount dev drive when windows startup #121
Dou Dou (@Ddoudou) can you elaborate on how you created your Dev Drive? Currently, I believe that only Dev Drives created via the Settings app will be automatically mounted. See the comment below (the broader thread may be of interest as well).
Dou Dou (@Ddoudou) can you elaborate on how you created your Dev Drive? Currently, I believe that only Dev Drives created via the Settings app will be automatically mounted. See the comment below (the broader thread may be of interest as well).
Dou Dou (@Ddoudou) thanks! Did you create a physical drive or a virtual drive? Could you also please file a Feedback Hub item for this? You can invoke Feedback Hub via [Windows]+[f] and paste the link here so we can more easily find your information on the back end. The link can be found at the bottom of the feedback report. Please use "Developer Platform -> Dev Drive" for the Category.
Dou Dou (@Ddoudou) sorry for the delayed response- appreciate you filing the feedback. Would you mind running the command below from a command prompt and sharing the output?
There is a workaround, you can go to Settings > System > For developers at the bottom of the screen under the Dev Drive go to Create a Dev Drive. And then on the next screen click Attach VHD - attach your existing dev drive VHDX
In my case had to move virtual dev drive [created through Dev Home few months back] to a better performing SSD. Which broke the auto mount at startup. Finally, this worked for me.
Reacted by autoantwort, Merlin Schumacher and Vishal N
As noted in microsoft/devhome#1903 (comment), seeing this on my arm64 surface. Dev drive was created via the dev home interface. Virtual disks service is set to auto start. I can manually attach the drive fine after boot using the diskpart or GUI approaches noted in the thread.
General
Name: Auto-Mount DevDrive VHDX at Startup
When running the task, use the following user account: [I selected an account with administrative rights]
Selected Run whether user is logged in or not , Do not store password and Run with highest privileges.
Triggers
At startup
At log on
Actions
Action: Start a program
Program/script: diskpart.exe
Arguments: /S "C:\devdrive.automount.diskpart"
Conditions
Unchecked everything.
Settings
Checked the top 5 checkboxes.
Set Do not start a new instance on the last dropdown.
Open Windows Settings, go to "Disks & volumes", click on "Attach VHD", and find your VHD or VHDX file. It will stay mounted across reboots.
If you instead mount the virtual disk by double-clicking it, it won't auto-mount after a reboot.
9. As noted in microsoft/devhome#1903 (comment), seeing this on my arm64 surface. Dev drive was created via the dev home interface. Virtual disks service is set to auto start. I can manually attach the drive fine after boot using the diskpart or GUI approaches noted in the thread.
```
❯ reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\AutoAttachVirtualDisks /s
Activity
adrastogi commentedon Jun 20, 2024
Dou Dou (@Ddoudou) can you elaborate on how you created your Dev Drive? Currently, I believe that only Dev Drives created via the Settings app will be automatically mounted. See the comment below (the broader thread may be of interest as well).
microsoft/devhome#1903 (comment)
cc: AdamBr (@AdamBraden)
Ddoudou commentedon Jun 24, 2024
use the devhome
adrastogi commentedon Jun 24, 2024
Dou Dou (@Ddoudou) thanks! Did you create a physical drive or a virtual drive? Could you also please file a Feedback Hub item for this? You can invoke Feedback Hub via [Windows]+[f] and paste the link here so we can more easily find your information on the back end. The link can be found at the bottom of the feedback report. Please use "Developer Platform -> Dev Drive" for the Category.
Ddoudou commentedon Jun 25, 2024
adrastogi https://aka.ms/AAr0sxs
adrastogi commentedon Jul 25, 2024
Dou Dou (@Ddoudou) sorry for the delayed response- appreciate you filing the feedback. Would you mind running the command below from a command prompt and sharing the output?
reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\AutoAttachVirtualDisks /sDdoudou commentedon Jul 25, 2024
adrastogi no output
Eli-Black-Work commentedon Jul 30, 2024
Dou Dou (@Ddoudou) BTW, you might want to post this at the DevHome repo: https://github.com/microsoft/devhome :)
rangasurendra commentedon Nov 12, 2024
There is a workaround, you can go to
Settings > System > For developersat the bottom of the screen under theDev Drivego toCreate a Dev Drive. And then on the next screen clickAttach VHD- attach your existing dev drive VHDXIn my case had to move virtual dev drive [created through
Dev Homefew months back] to a better performing SSD. Which broke the auto mount at startup. Finally, this worked for me.joncamp commentedon Jan 23, 2025
As noted in microsoft/devhome#1903 (comment), seeing this on my arm64 surface. Dev drive was created via the dev home interface. Virtual disks service is set to auto start. I can manually attach the drive fine after boot using the diskpart or GUI approaches noted in the thread.
GF-Huang commentedon Mar 30, 2025
https://superuser.com/a/1882252/986246
niikoo commentedon May 30, 2025
This is how I set it up.
Task Scheduler
General
Name: Auto-Mount DevDrive VHDX at Startup
When running the task, use the following user account: [I selected an account with administrative rights]
Selected
Run whether user is logged in or not,Do not store passwordandRun with highest privileges.Triggers
Actions
Action:
Start a programProgram/script:
diskpart.exeArguments:
/S "C:\devdrive.automount.diskpart"Conditions
Unchecked everything.
Settings
Checked the top 5 checkboxes.
Set
Do not start a new instanceon the last dropdown.Create the diskpart file
Path:
"C:\devdrive.automount.diskpart"File contents:
Replace
"C:\devDrive.vhdx"with the path to your DevDrive VHDX file.neominky commentedon Jul 23, 2026
No, the mount status is not maintained after rebooting. So I searched and found this place. System is Windows Server 2025
l5z12 commentedon Oct 29, 2026
Generate a random UUID using
New-Guidand add the registry key shall be fine? Or we can just reverse engineer the normal behavior and find outHere's my registry using

Attach VHDin Settings for reference