No operation can be performed on the adapter


Symptoms

when attempting to use ipconfig /release or renew command, you get "No operation can be performed on the adapter <xxxxx...> as this connection has its media/cable disconnected.

Causes

1. The network is up-plugged or no NIC. 

2. You are using static IP.