Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to attach vhd files automatically at Windows 7 startup? I'm imagine it will be like batch script or powershell script. I've tried this solution before,but still wont work. Any guess guys?

share|improve this question
what exactly is the problem with the solution from the referenced question? – fretje Aug 24 '09 at 21:38
I dont know where or when I have to execute it. any ideas? – Funky81 Aug 28 '09 at 20:12
The recommendation in the linked question was to create this script as .cmd file that gets included in the "StartUp" folder under your Start Menu. Alternatively, you could register it as a "Run" item in the registry: – Reuben Sep 8 '09 at 0:36
note that you must run the diskpart.cmd file "as administrator". – user126525 Apr 4 '12 at 10:25

It is definitely possible, you can even boot from a vhd. Scott Hanselman blogged about it previously.

But I think the solution from your linked question should do just fine.

share|improve this answer

It is possible with a CMD\ Bat command and Powershell. Both can be confusing for people. I made a very easy slim program to resolve this. Take a look at it and send me some feedback on it. The function is there to attach them in Windows 7, Vista and Server 2008. Hopefully in the next release they will set a function in the Console to allow it to attach at startup like a simple check box. This is really needed when you are BaremMetal booting or using a VHD as backup. you can download it and use it freely @ "Love the VHD's"

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .