One device our users have to interact with is connected to via a generic Ethernet over USB cable. After being connected to that device, the PC needs to be configured with a specific static IP adress on that virtual adapter for communication to work properly.
At this time, the configuration is done through a netsh command, run with elevated privileges, once the cable has been connected. This is problematic, since some users don't have the credentials for the administrator account on their PC.
That device is only used with a specific software that we develop, whose installation already requires elevated privileges (for a different reason). Would there be a way to pre-configure the network adapter during the software installation, so no elevated privileges is required at runtime? How?
Edited to answer bjoster's comment: I'd need to try it, but my understanding is that the netsh command is run using the interface name as argument (
interface ipv4 set address name=...). Before the cable is connected, the name doesn't refer to anything. As far as I know, I can't specify the VID/PID in the netsh arguments.