Make sure you have done this in the properties of the Network Connections pressing Win + R, typing ncpa.cpl and selecting Properties, Double-clicking on IPv4:
And restart the VM. Then go back and verify the IP with cmd and in the IPv4 Properties
Or put this line in cmd:
netsh interface ipv4 set address name=Ethernet0 source=static addr=192.168.1.10 mask=255.255.255.0 gateway=192.168.1.1
And retart with:
shutdown /r /t 0
For me, the “No static IP was found” still poped up, so I continu to see if it worked like that.