Which command should you run?

You have 3 server named Server1. Server1 runs a Server Core installation of Windows Server 2012.
The local area connection on Server1 has the following configuration:
IP address: 10.1.1.1
Subnet mask: 255.255.240.0
Default gateway: 10.1.1.254
Preferred DNS server: <none>
The network contains a DNS server that has an IPv4 address of 10.1.1.200.
You need to configure Server1 to use 10.1.1.200 as the preferred DNS server. The solution must not change
any other settings on Server1.
Which command should you run?

You have 3 server named Server1. Server1 runs a Server Core installation of Windows Server 2012.
The local area connection on Server1 has the following configuration:
IP address: 10.1.1.1
Subnet mask: 255.255.240.0
Default gateway: 10.1.1.254
Preferred DNS server: <none>
The network contains a DNS server that has an IPv4 address of 10.1.1.200.
You need to configure Server1 to use 10.1.1.200 as the preferred DNS server. The solution must not change
any other settings on Server1.
Which command should you run?

A.
sconfig.cmd

B.
net.exe

C.
Set-NetIPInterface

D.
netsh.exe

Explanation:
In Windows Server 2012, you can use the Server Configuration tool (Sconfig.cmd) to configure
and manage several common aspects of Server Core installations.
Network settings
You can configure the IP address to be assigned automatically by a DHCP Server or you can assign a static IP
address manually. This option allows you to configure DNS Server settings for the server as well.

Sconfig.cmd interface



Leave a Reply 18

Your email address will not be published. Required fields are marked *


jo

jo

netsh would require installing windows powershell which is viewed as an additional change on the server.
So the answer is A (sconfig)

http://technet.microsoft.com/en-us/magazine/ff476070.aspx

Michael Metzger

Michael Metzger

Hi guys,

in reply to “jo” I´d like to state, that you don´t need powershell for netsh.exe!
netsh.exe is a cmd.exe command.

The question states “the solution must not change any other settings on Server1”.

So in my understanding it really could be A or D, but I´m tending to D, maybe because it is really a command that changes the preferred DNS Server Setting and not a command that opens a tool for changing this setting – although this is absolutelly not clear in the question.

Still, for the command netsh.exe you don´t need powershell.

Cheers, Michael

Syed Javed

Syed Javed

Could be D as well besides A:

netsh interface ipv4 add dnsserver “Ethernet” address=192.168.x.x index=1

Frank

Frank

I think MS wants us to choose sconfig, because its a 2012 feature, don’t you think?

vishwas

vishwas

Guys,

For command prompt tool a Server Core installation must be written in native Win32 code. In a question it clearly says that it is a server core installation . So we are not sure command prompt is available or not (win 32 codes). So easiest way is using a power shell command “sconfig” to change the network settings.

Server core installation is nothing but a sconfig tool using Power shell .

robber

robber

in my memory sconfig requires you to set the ip again b4 you can change the dns server settings. if that’s correct the answer is definitely netsh.exe.

Bob

Bob

Not correct, just checked and you can set the DNS server address separately from the IP Address in sconfig

Luuc

Luuc

I would say D.

Not sure, but is A not just for Hyper V-Server(s) or is this more ment to be to use on Hyper-V.

You can change network settings with SCONFIG.

Jony

Jony

If you run Netsh.exe interface on server 2012r2 you will see warning that for further TCP/IP configuration Microsoft recommends to use Powershell
So answer is A

Magwif

Magwif

the answer is A
I have tested it on my core server in my lab

you can change the preferred DNS without making any additional changes

rca-ieftin-online.com

rca-ieftin-online.com

Hi there, just became aware within your blog through Google, and discovered that it’s really informative. I’m gonna look for brussels. I will appreciate in the event you continue this later on. Many people will probably be benefited through your writing. Cheers!
rca-ieftin-online.com http://goo.gl/6GqA7S

Bolo

Bolo

I think D, ‘cos it’s asking for a command. sconfig.cmd is not a command, it is a VBScript tool. netsh is a command

Bolo

Bolo

Also, IIRC, sconfig will ask for two sets of DNS IPs, so even if you don’t put the second one in (not sure if you can skip or not), you’d be setting 2 things with sconfig.

DSE

DSE

D is a command, A is a tool (VBScript UI to execute different commands). So the answer is D