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
Explanation:
Windows Remote Management allows you to manage and execute programs remotely
References:
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
Answer C:
winrs -r:server2 ipconfig
Additional Reading:
https://msdn.microsoft.com/en-us/library/dd163506.aspx
To enable winrs on a server:
winrm quickconfig
WinRs Command Format:
winrs -r:[Remote Server] [command]
For [Remote Server], you can use the servername or even the URL to the winRM server.
winrs -r:http://127.0.0.1:80 command
You can set WinRM configuration settings using the “winrm set” command:
winrm set winrm/config/client @{TrustedHosts=”SEA-DESK155″}