Microsoft

AZ-800 practice question 242

Administering Windows Server Hybrid Core Infrastructure · free question 242 of 246

Question

You need to meet the technical requirements for Server4. Which cmdlets should you run on Server1 and Server4? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Explanation

Server1: Select the correct cmdlet — Set-Item. Server1 is the management machine, and to manage a server that is not in the same Active Directory domain (a workgroup or otherwise non-trusted host such as Server4), the WinRM client on the managing computer must explicitly trust that host, which is done with Set-Item WSMan:\localhost\Client\TrustedHosts -Value "Server4" (add -Concatenate to preserve existing entries). Enable-PSRemoting on Server1 would only configure Server1 to *receive* remote connections, which does nothing for outbound trust of an untrusted remote host. Server4: Select the correct cmdlet — Enable-PSRemoting. Server4 is the target being managed, so it needs the WinRM listener created, the WinRM service set to automatic start and running, and the firewall rules for Windows Remote Management opened — all of which Enable-PSRemoting -Force performs in one step. Start-Service WinRM would start the service but leave the listener and firewall exceptions unconfigured, and Enable-ServerManagerStandardUserRemoting only grants non-administrator users the rights to view remote data, which is not what enables the remote management connection itself.

Need the theory? Learn it free in the AZ-800 course on Godlike Academy

Practice the whole free set

AZ-800 is a free exam: all 300 questions with instant feedback, plus Learn and Exam modes and PDF export, free.