Use netsh to set a static IP
Since I often seem to forget the correct syntax for setting a static IP address using netsh, I’ve decided to blog it then I know where to come to remind myself!
| 1 2 | netsh interface ipv4 set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 netsh interface ipv4 set dns "Local Area Connection" static 192.168.0.1 | 
And when setting back to DHCP
| 1 2 | netsh interface ipv4 set address "Local Area Connection" dhcp netsh interface ipv4 set dns "Local Area Connection" dhcp | 
 
																			 
																											 
																											 
																											 
																											 
																											