How to create a profile to use a specific USB-to-ETH adaptor / General Questions / NetSetMan Support

NetSetMan Support

Search for already answered questions about NetSetMan (Pro) or ask new ones

You are not logged in.

#1 2021-07-12 14:58

PeteT
Member
Registered: 2021-07-12
Posts: 2

How to create a profile to use a specific USB-to-ETH adaptor

Hi,

Wondered if you could help me out please. I am trying to create a profile to use a branded USB-to-ETH adaptor as the primary wired LAN connection. So far I have the below:

Profile name="(WIRED)(Anker) USB to ETH Adaptor" id="{3C2F3D4F-6515-4164-8AA3-05C0BAF42C13}" created="1620995756" activated="1626087462" count="2">
        <Settings>
          <Nic name="Realtek*">{88E3279D-027C-46C3-AC42-043523510923}</Nic>
          <Setting name="IP" id="11" set="True" dhcp="True"/>
          <Setting name="DNS" id="13" set="True" dhcp="True"/>
        </Settings>
      </Profile>

As you can see I have used the wild card to pick up the Realtek adaptor type, but it does not seem to automatically select the adaptor type (which you still have to select manually from the dropdown list.)
I'd appreciate it greatly if you could point me in the right direction on how to do this automatically for users.

Please let me know if you require any further information.

Kind regards,
Pete

Offline

#2 2021-07-12 20:00

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: How to create a profile to use a specific USB-to-ETH adaptor

We are not sure if you read the FAQ for this topic completely, but here it is just in case:
https://www.netsetman.com/faqcompany

There could be several reasons for your problem, so we can provide some general help for this case.
1. If you want to automatically assign a NIC using the name with a wildcard, then first of all remove the GUID. See the linked topic for an example.
2. When you edit the settings file directly, make sure NetSetMan is not running. Check and exit through its notification icon.
3. When you run NetSetMan after editing the settings file, make sure the adapter you look for, is connected to your system and that it is a valid NIC (that shows up in the Windows Connections overview).
4. After running the application, the settings file might not immediately be updated. It will be updated the next time something in the software changes or the application is terminated again. So just to make sure, you could simply do a small change, like renaming some profile.

Online

#3 2021-07-12 20:49

PeteT
Member
Registered: 2021-07-12
Posts: 2

Re: How to create a profile to use a specific USB-to-ETH adaptor

Hello,

Thank you very much for your fast response. In reply "1." Which part is the GUID I would need to remove, in my example:

Profile name="(WIRED)(Anker) USB to ETH Adaptor" id="{3C2F3D4F-6515-4164-8AA3-05C0BAF42C13}" created="1620995756" activated="1626087462" count="2">

Would it be the part highlighted in red I remove?

Thanks again for your help.

Offline

#4 2021-07-12 20:55

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: How to create a profile to use a specific USB-to-ETH adaptor

No, the part you highlighted is the GUID of the profile. You need to remove the GUID of the NIC.
Again, please follow the link we provided and look at the examples in the code editor screenshot. Your constellation is "Option 2" in that screenshot.

Online