If you have used VMware for any length of time, you have probably done a P2V(Physical to Virtual) conversion on a Windows server, to migrate that system into a virtualized environment. If you’ve got specific NIC settings – such as Static IP, DNS, etc. – those have to be recreated on the new virtual NIC. You also have the duty of cleaning up all the non-present hardware of the system after the conversion is finished in order to get respectable boot times, and better stability inside of Windows.
There are a lot of repetitive tasks, so I decided to put all those common commands in a batch script. Things should be self-explanatory but let me know if you have questions. Note: Fully works only on Windows 2003 server
One thing to point out is that the ‘netsh’ utility used in this script refers to the NICs in Windows by their title. So, commonly the title is “Local Area Connection”. Windows will usually increment the title to “Local Area Connection 2” after conversion/upgrade, so you will either need to rename the NIC to it’s original, or modify the file. Using Option 3 on the tool allows you to view the current exported settings.
Also, if you’re looking for some good info on how to do a migration of your Guest VMs from VI 3.5 to vSphere 4.0, Scott Lowe has a great article on his blog for installing all the latest and greatest drivers available from VMware into your Guest VM.
Download Guest VM Settings Migrator