Class ID With Multiple Docking Stations

NeoPhilTF 26 Reputation points
2021-05-04T14:29:54.833+00:00

Hi,

We use the class ID so we can assign various options on our dhcp scopes. The desktops are fine as they dont move about. The laptops are obviously mobile and they attach to different docking stations a people move about. When you set the class id on the laptop initially and use the wildcard * everything is ok. As people plug into the usb dock, the dock has its own and this becomes a new network card. This new network card doesnt have the class id configured on it and it has to be done manually so people can access the network. This is obviously a really bad idea with people moving about. Is there any way to force all network cards to be included in the class id? We use windows 7 and 10 at the moment.

I know this sounds a bit of a woolley description but its the only thing I can think of.

Anyone have any ideas?

Cheers

Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,043 questions
0 comments No comments
{count} vote

Accepted answer
  1. Sunny Qi 11,051 Reputation points Microsoft Vendor
    2021-05-11T06:42:37.173+00:00

    Hi Phil,

    A. Typing Task Scheduler in Search bar to open Task Scheduler. and click create task

    95782-image.png

    B. In General tab, type the name of this task. Move to Triggers tab, click New, in the New Trigger window, you could choose when did you need trigger running this script, such as recur every day and repeat task every 1 hour for 1 day. It depends on your demand.

    95688-image.png

    C. Move to Action tag, click New, select Start a program and insert PowerShell under Program/script. Inset the following content in the box of Add arguments (optional).

    -command "Import-module NetAdapter; Get-NetAdapter|ForEach-Object{ipconfig /setclassid $($_.name) <classID>}"

    95801-image.png

    D. Click OK and the task has been configured successfully. The script will run every 1 hour on each day.

    95793-image.png

    Best Regards,
    Sunny

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Sunny Qi 11,051 Reputation points Microsoft Vendor
    2021-05-06T04:03:09.373+00:00

    Hi,

    Thanks for posting in Q&A platform.

    As far as I know, the DHCP class ID can be assigned to client by running command ipconfig /setclassid <adapter>[<classID>] for specific network adapter, it cannot be assigned to multiple NICs at once. If the network adapter name is changing constantly, the way is you need configure the DHCP class ID for the specific network adapter manually.

    Here are two articles regarding of class ID for your reference:

    Ipconfig

    Managing Options

    Best Regards,
    Sunny

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Sunny Qi 11,051 Reputation points Microsoft Vendor
    2021-05-11T06:26:43.357+00:00

    Hi Phil,

    Thank for your update. I think the goal might be achieved by script. After discussed with our PowerShell engineer, if we need configure all network adapters class ID to the specific one, you may try run the following script. And you could set up a task in task scheduler, for more detailed steps, please refer to my next reply.

    Get-NetAdapter|ForEach-Object{ipconfig /setclassid $($_.name) <classID>}

    I have tested it in my lab, and here is the result for your reference:

    95522-image.png

    95447-image.png

    95513-image.png

    Best Regards,
    Sunny

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. NeoPhilTF 26 Reputation points
    2021-05-11T08:24:47.973+00:00

    Thats brilliant!!! Thank you VERY much.....I'll try this on our network to see if this willwork with our build. We have an odd one.

    THANK YOU.

    Phil


  4. Rohit Bhasin 0 Reputation points
    2024-08-23T12:22:29.7+00:00

    Hi Guys

    Working on same requirement. I have done same configuration but still DHCP releasing IP to system where User Class ID value do not match or not available. Could you please share screen shot of how User Class ID was created.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.