Inject a Static IP Address in Ubuntu 18.04 on Hyper-V

If you didn't already know this, you can use the WMI class Msvm_GuestNetworkAdapterConfiguration and insert a static IP address into a Hyper-V VM. Ravikanth Chaganti provides a PowerShell script capable of setting a static IP on a VM. I slightly modified this to work on a remote Hyper-V host.…