You have a server named Server1 that runs a Server Core installation of Windows Server 2012 R2.
Server1 is configured to obtain an IPv4 address by using DHCP. You need to configure the IPv4
settings of the network connection on Server1 as follows:
IP address: 10.1.1.1
Subnet mask: 255.255.240.0
Default gateway: 10.1.1.254
What should you run?
A.
Set-NetlPInterface
B.
netcfg.exe
C.
New-NetlPAddress
D.
msconfig.exe
New-NetIPAddress – Creates and configures an IP address.
Set-NetIPInterface – Modifies an IP interface.
New-NetIPAddress is the correct answer.
https://technet.microsoft.com/itpro/powershell/windows/nettcpip/new-netipaddress
This command allows you to configure IP address, gateway, prefix length (mask), etc.