[SOLVED] Set RNDIS to a static IP for multiple unknown devices ?

The_Revisionist

Honorable
Jan 28, 2016
3
0
10,510
Afternoon,

My menial job has me connecting to hundreds of devices via my usb cable, using RNDIS. Each time I connect, Windows registers a new connection. I'm up to 300 something.

I have to manually reassign my ip every time I connect initially, because the adapter resets to DHCP. Is there anyway to make RNDIS static, and stay that way after the adapter registers ? the new connection? I feel like this should be easy but im also really dumb.

If you need more information please ask, if I'm missing the obvious feel free to laugh 🥺
 
Solution
USB printer cables use a USB A connector on the host end and a USB B connector for the printer.

If the USB cable works then being a "printer cable " per se is moot to the matter at hand.

So you are provided and must assign a static IP address to the controller? Do you also need to include the controller's MAC?

My thought is that instead of going through all of the network related screens you could probably use a Powershell cmdlet or simple script to prompt for and then enter the required IP address, MAC, etc..

Just a simple loop that allows you to connect the next test controller , key in the necessary information, complete the test, repeat.

You can use Get cmdlets to discover configuration information. You can use...
Interesting.....

Connection being: Computer[USB port] < Male plug ===== USB extension cable ===== Female port <---- USB device being tested - correct?

This:

"I have to manually reassign my ip every time I connect initially, because the adapter resets to DHCP ".

What types of USB devices are you testing? Network adapters (wired or wireless) likely requiring additional actions as compared to a thumb drive, an external USB drive, or USB printer, etc...

What steps or procedure do you use to reassign the ip address? What do you manually change and where?

Based on the context of your post it appears that your computer needs a static IP address.

I can envision a couple of possible solutions but overall more information is needed.

At work, who has full admin rights to the network router being used? Just seeking a generic answer - not a person by name.
 
Interesting.....

Connection being: Computer[USB port] < Male plug ===== USB extension cable ===== Female port <---- USB device being tested - correct?
The USB is a printer cable, if that makes a difference.

What types of USB devices are you testing? Network adapters (wired or wireless) likely requiring additional actions as compared to a thumb drive, an external USB drive, or USB printer, etc...
They're proprietary controllers, I can't adjust them. (Not allowed)

What steps or procedure do you use to reassign the ip address? What do you manually change and where?

Open my network adapters, right click the rndis adapter, properties, IPv4, static->ip.

Based on the context of your post it appears that your computer needs a static IP address.

I can envision a couple of possible solutions but overall more information is needed.

At work, who has full admin rights to the network router being used? Just seeking a generic answer - not a person by name.

I have most admin rights, but full admin access is readily available if needed.
 
USB printer cables use a USB A connector on the host end and a USB B connector for the printer.

If the USB cable works then being a "printer cable " per se is moot to the matter at hand.

So you are provided and must assign a static IP address to the controller? Do you also need to include the controller's MAC?

My thought is that instead of going through all of the network related screens you could probably use a Powershell cmdlet or simple script to prompt for and then enter the required IP address, MAC, etc..

Just a simple loop that allows you to connect the next test controller , key in the necessary information, complete the test, repeat.

You can use Get cmdlets to discover configuration information. You can use Set cmdlets to change configuration values.

FYI:

http://woshub.com/powershell-configure-windows-networking/

https://askme4tech.com/how-configure-network-adapter-powershell

Still not sure about the process; however, likely that you can automate it to some extent.

Especially if your test computer has Powershell installed and you have (or can get) the admin rights to use it.

Are you able to provide a step by step list of the workflow and what you do and what configuration changes you make?
 
Solution