nerdexam
Microsoft

MD-102 · Question #318

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…

The correct answer is B. Enable-PSRemoting. The Enable-PSRemoting cmdlet performs all required configurations in a single command: it starts the WinRM service, sets the service startup type to Automatic, creates an HTTP listener that accepts requests on all IP addresses (wildcard), and configures the Windows Firewall to…

Submitted by jian89· Apr 18, 2026Prepare infrastructure for devices

Question

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?

Options

  • AConnect-WSMan
  • BEnable-PSRemoting
  • CInvoke-WSManAction
  • DEnable-PSSessionConfiguration

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    82% (31)
  • C
    5% (2)
  • D
    11% (4)

Explanation

The Enable-PSRemoting cmdlet performs all required configurations in a single command: it starts the WinRM service, sets the service startup type to Automatic, creates an HTTP listener that accepts requests on all IP addresses (wildcard), and configures the Windows Firewall to allow WS-Management traffic on the default ports. Connect-WSMan (A) connects to a remote WinRM endpoint but does not configure the service. Invoke-WSManAction (C) invokes a method on a WS-Management resource. Enable-PSSessionConfiguration (D) enables a specific PowerShell session configuration endpoint but does not fully configure WinRM from scratch.

Topics

#WinRM#PowerShell Remoting#Firewall exceptions#Windows 11

Community Discussion

No community discussion yet for this question.

Full MD-102 Practice