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?
A . Connect-WSMan
B . Enable-PSRemoting
C . Invoke-WSManAction
D . Enable-PSSessionConfiguration
Answer: B
Explanation:
The Enable-PSRemoting cmdlet configures the computer to receive PowerShell remote commands that are sent by using the WS-Management technology. WS-Management based PowerShell remoting is currently supported only on Windows platform.
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.
Reference: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting
Latest MD-102 Dumps Valid Version with 98 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund