Windows 7: Auto-Mount VHDs at Startup

martin w. angler

Howdy folks,

We’ll have to make this a quick post, since I am only on for a 15 mins break at the SPOC 2010 conference ;-). I prepared a few things, and now I am putting them together.

First of all, I hope you enjoy as much as I do the concept of having VHDs under Windows 7. For those who don’t know where to get started, go to Computer–> Manage –>Disk Management (shown in Figure 1)

image

Figure 1: Disk management. Right-click in order to create or attach VHDs.

And this is where the problem resides. Everytime you want to mount your disks, you have to enter here and execute “Attach Vhd” manually. Not cool enough for us.

The solution: A script, executed as scheduled task (run as Administrator)

These are the steps:

  1. Create a script that calls the diskpart commands
  2. Call the script from a…

View original post 261 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s