You can also look at the ipv4 bindings in the registry to find the preferred network adapter. This is similar to what we have done in facter.