Restore IP settings from registry Powershell Tool

I’m currently working on v2v from VMware to Hyper-v.
Because the new VM’s on Hyper-V get new NIC’s all the IP settings are lost and because I didn’t want to restore the settings all manually I wanted to create a powershell script and eventually ended up with a Powershell tool with GUI.
It uses the netsh cmdlet so it can be used on different OS versions (wish 2008 already had the get-netadapter cmdlet)

IP_restore_settings

You can download the code here:
IP_restore

I think the code could be cleaner, but it does the trick.
Please let me know if you have any recommendations.

Leave a Reply

Your email address will not be published. Required fields are marked *