Microsoft Endpoint Administrator — Question 341

Your network contains an Active Directory domain. The domain contains a computer named Computer1 that runs Windows 11.

You need to enable the Windows Remote Management (WinRM) service on Computer1 and perform the following configurations:

• For the WinRM service, set Startup type to Automatic.
• Create a listener that accepts requests from any IP address.
• Enable a firewall exception for WS-Management communications.

Which PowerShell cmdlet should you use?

Answer options

Correct answer: B

Explanation

The correct answer is B, Enable-PSRemoting, as it configures the WinRM service to start automatically, sets up the necessary listener, and enables the firewall exception for WS-Management communications. The other options do not fulfill all the requirements: A only connects to a WSMan service, C performs actions related to WSMan, and D configures PowerShell session settings without addressing WinRM service setup.