Site icon Exam4Training

Which PowerShell command should you run?

You have a workgroup computer named Client1 that runs Windows 11 and connects to a public network.

You need to enable PowerShell remoting on Client1. The solution must ensure that PowerShell remoting connections are accepted from the local subnet only.

Which PowerShell command should you run?
A . Set-PSSessionConfiguration CAccessMode Local
B . Enable-PSRemoting CSkipNetworkProfileCheck
C . Enable-PSRemoting CForce
D . Set-NetFirewallRule CName “WINRM-HTTP-In-TCP-PUBLIC” CRemoteAddress Any

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.

Syntax

Enable-PSRemoting

[-Force]

[-SkipNetworkProfileCheck]

[-WhatIf]

[-Confirm]

[<CommonParameters>]

Parameters include:

* -SkipNetworkProfileCheck

Indicates that this cmdlet enables remoting on client versions of the Windows operating system when the computer is on a public network. This parameter enables a firewall rule for public networks that allows remote access only from computers in the same local subnet.

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

Exit mobile version