Powershell Script for How to Assign Static IP Address and DNS Name Servers to a local machine.
New-NetIPAddress `
-InterfaceIndex 10 `
-InterfaceAlias 'Ethernet' `
-IPAddress 172.16.0.101 `
-PrefixLength 16 `
-DefaultGateway 172.16.0.1Set-DNSClientServerAddress `
-InterfaceIndex 10 `
–InterfaceAlias "Ethernet" `
–ServerAddress 192.168.16.10, 192.168.16.11
Or you can use the Server sconfig Menu,
If You want to enable Echo Request ICMP-IPv4 Ping Response From sconfig
You now have enabled Echo Request ICMP-IPv4 Ping Response
Success! We have a response from the Hyper-V Server.