All posts tagged: scripts

HVS2008 UI

After thinking through it for a while, I have decided to stop developing the tool further. I had the plans of dismantling the tool as individual scripts so that you can use them in your scripting framework. I have looked at the existing code and it was not written in a very modular way. Only parts of it can be easily broken down. I feel that it is not worth the time I will have to spend. I have validated every piece of this script on Hyper-V v2 beta and Windows Server 2008 R2 beta. It works fine on the new OS too. I learned a lot of Hyper-V WMI related concepts while writing this tool and it was really helpful in understanding various architectural stuff. I will, now, concentrate more on PowerShell and C# related development and stop doing any VBScript work.

Windows Image to Virtual Hard Disk (WIM2VHD) Converter

I had earlier blogged about a script I wrote to capture OS VHDs from WIM files directly. This one got lot of attention as expected. Now, Mike Kolitz released a better version of what I did. He calls it WIM2VHD. Of course, you still need to have Windows 7 and Windows 7 WAIK tools installed on the system you are running this script. Both the scripts use diskpart commands to do the job. To some extent, I knew that some one from MS would do this because they have left traces of running this tool within the public beta builds. On a few installs, you can find WIM2VHD.log on the boot partition. I don’t remember the exact path though. You can download Mike’s script here. Thanks Mike..!

Right click to mount/unmount VHD in Windows 7 or Windows Server 2008 R2

Okay…this is not “yet another update” kinda post. If you thought that way, read the subject again. I had previously posted a tool to mount/unmount VHDs on a Windows Server 2008 system with Hyper-V and it works only if you have Hyper-V role enabled on the system because of its dependency on Hyper-V WMI interfaces. Now, in this post, I am posting a new tool to mount / unmount VHDs by right clicking on a VHD file. This new tool will work on Windows 7 or Windows Server 2008 R2 systems with or without Hyper-V role. This one uses diskpart commands available within this new OS and hence there is no dependency on Hyper-V WMI interfaces. So, you can use this new script only if your system has Windows 7 or Windows Server 2008 R2. Windows Server 2008 R2 provides a way to mount / unmount VHDs from the disk management MMC. But, It takes too many clicks to do that 🙂 and I prefer saving some clicks for more useful stuff. To get the ability to mount / …

First release of HVS2008 Scripts / UI

A week after I created this Codeplex project, I made the first release this evening. This is a very initial release and will not have the complete functionality. For this release, I mostly concentrated on the presentation aspects. I have tried to use the same interface as HVConfig.CMD because I feel that is the best way you can create a text based menu interface. Coming to the design aspects of the whole project itself, there are currently 4 components in this. Here are some more details on the four components HVS2008CONFIG.CMD This file is the starting point. You need to run this file to access the scripts / UI. I have used this design to make sure that any environment changes required for the VBScript to function can be done. *Always* use this script to start the HVS2008 configuration scripts / UI HVS2008DISPLAY.VBS This VBScript will display the main menu interface and prompt the user for what he wants to do. This menu is generated dynamically from HVS2008MAIN.WSF and will mostly remain unchanged for a long time. This …