Client1 is a workgroup Windows 11 PC on a public network. You must enable PowerShell remoting and allow connections only from the local subnet. Which PowerShell command should you run?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable-PSRemoting –SkipNetworkProfileCheck.
Why this is the answer
The Enable-PSRemoting -SkipNetworkProfileCheck command enables PowerShell remoting and bypasses the check for the network profile type. This is crucial for a public network profile, as remoting is typically disabled by default on public networks for security reasons. The command configures the necessary firewall rules and WinRM service settings. Set-PSSessionConfiguration –AccessMode Local is incorrect because it configures a specific session configuration, not the overall remoting capability, and 'Local' access mode restricts connections to the local computer, which isn't the goal. Enable-PSRemoting –Force is incorrect because while it enables remoting, it doesn't address the public network profile restriction. Set-NetFirewallRule –Name "WINRM-HTTP-In-TCP-PUBLIC" –RemoteAddress Any is incorrect because manually setting a firewall rule is only one part of enabling remoting; Enable-PSRemoting handles all necessary configurations, including firewall rules, more comprehensively.
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