Home » Microsoft » 70-417 v.2 » Which command should you run from Server1?
Your network contains an Active Directory domain named contoso.com. The domain contains two member servers named Server1 and Server2 that run Windows Server 2012 R2.
You log on to Server1.
You need to retrieve the IP configurations of Server2.
Which command should you run from Server1?
A. winrm get server2
B. dsquery * -scope base -attrip/server2
C. winrs -r:server2ipconfig
D. ipconfig> server2.ip
Correct Answer: C
Explanation/Reference:
Explanation:
Using WinRS
You can use WinRS to administer a Server Core installation remotely from the command line. WinRS is a command-line tool included in both Windows Vista and the Full installation of Windows Server 2008, which relies on Windows Remote Management (WinRM) to execute remote commands, especially for headless servers. WinRM is Microsoft’s implementation of the WS-Management protocol, a standard Simple Object Access Protocol (SOAP)-based, firewall-friendly protocol that enables hardware and operating systems from different vendors to interoperate. You can think of WinRM as the server side and WinRS the client side of WSManagement.[…]
Using WinRS to Administer Server Core in a Domain
The basic syntax for WinRS commands is as follows:
winrs -r:target command where target is the name (NetBIOS or FQDN) of the Server Core installation that has had WinRM enabled on it, and command is any command string that you want to execute on the Server Core installation. For example, to use WinRS to enable Remote Desktop remotely on a Server Core installation named SEA-SC2, type the following command on any computer running Windows Vista or on a Full installation of Windows Server 2008:winrs -r:SEASC2 cscript %WINDIR%system32scregedit.wsf /ar 0
References:
http://technet.microsoft.com/en-us/library/dd163506.aspx
Exam Ref 70-410: Installing and Configuring Windows Server 2012: Objective 4.3: Deploy and Configure the DNS service, Chapter 4 Deploying and Configuring core network services, p. 246
http://technet.microsoft.com/en-us/library/dd349801(v=ws.10).aspx