MD-102 Exam QuestionsBrowse all questions from this exam

MD-102 Exam - Question 72


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?

Show Answer
Correct Answer: B

The Enable-PSRemoting cmdlet is appropriate for enabling the Windows Remote Management (WinRM) service on a computer running Windows 11. It sets the WinRM service startup type to Automatic, creates a listener to accept requests from any IP address, and enables a firewall exception for WS-Management communications, among other necessary configurations.

Discussion

5 comments
Sign in to comment
neki99Option: B
Oct 11, 2023

The Enable-PSRemoting cmdlet performs the following operations: Runs the Set-WSManQuickConfig cmdlet, which performs the following tasks: Starts the WinRM service. Sets the startup type on the WinRM service to Automatic. Creates a listener to accept requests on any IP address. Enables a firewall exception for WS-Management communications. Creates the simple and long name session endpoint configurations if needed. Enables all session configurations. Changes the security descriptor of all session configurations to allow remote access. Restarts the WinRM service to make the preceding changes effective.

BJS78Option: B
Sep 22, 2023

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-7.3

DarkfireOption: B
Feb 17, 2024

B is correct The Enable-PSRemoting cmdlet performs the following operations: Runs the Set-WSManQuickConfig cmdlet, which performs the following tasks: Starts the WinRM service. Sets the startup type on the WinRM service to Automatic. Creates a listener to accept requests on any IP address. Enables a firewall exception for WS-Management communications. Creates the simple and long name session endpoint configurations if needed. Enables all session configurations. Changes the security descriptor of all session configurations to allow remote access. Restarts the WinRM service to make the preceding changes effective. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-7.4

MR_EliotOption: B
Feb 25, 2024

Correct

ergacharskOption: B
Jul 21, 2024

B is correct