Your environment includes an Active Directory domain with a computer named Computer1 running Windows 11. You must enable Windows Remote Management (WinRM) on Computer1 and apply these settings: set the WinRM service startup type to Automatic; create a listener that accepts requests from any IP address; and allow WS-Management traffic through the firewall. Which PowerShell cmdlet performs these actions?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable-PSRemoting.
Why this is the answer
The Enable-PSRemoting cmdlet performs all the required actions: it configures the computer to receive PowerShell remote commands, starts the WinRM service, sets its startup type to Automatic, creates a listener to accept requests on any IP address, and enables a firewall exception for WS-Management traffic. Connect-WSMan establishes a connection to a remote computer for WS-Management operations but doesn't configure WinRM. Invoke-WSManAction executes a WS-Management action on a remote computer, assuming WinRM is already configured. Enable-PSSessionConfiguration enables a specific session configuration on the local computer, not the overall WinRM service.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed