Replaces WMI with Win32 API in host rename

This is necessary to be able to execute the plugin
in the specialize step after Sysprep