2

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?

4
  • what exactly is the problem with the solution from the referenced question?
    – fretje
    Aug 24, 2009 at 21:38
  • I dont know where or when I have to execute it. any ideas?
    – Funky81
    Aug 28, 2009 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: msdn.microsoft.com/en-us/library/aa376977(VS.85).aspx.
    – Reuben
    Sep 8, 2009 at 0:36
  • note that you must run the diskpart.cmd file "as administrator".
    – user126525
    Apr 4, 2012 at 10:25

2 Answers 2

3

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.

1

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 @ bmvhdloader.com "Love the VHD's"

You must log in to answer this question.

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