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…
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)- A3% (1)
- B82% (31)
- C5% (2)
- D11% (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
Community Discussion
No community discussion yet for this question.