In the contoso.com Active Directory domain you have Computer1 and Computer2 (both Windows 10). From Computer1 you need to run Invoke-Command to execute PowerShell commands on Computer2. What must you do first?
Choose an answer
Tap an option to check your answer.
Correct answer: On Computer2, run Enable-PSRemoting..
Why this is the answer
To use Invoke-Command to execute PowerShell commands remotely, Windows PowerShell Remoting must be enabled on the target computer (Computer2 in this case). The Enable-PSRemoting cmdlet configures the necessary firewall rules and WinRM service settings to allow remote PowerShell connections. Adding Computer1 to the Remote Management Users group on Computer2 is not strictly required for basic PowerShell remoting, as administrators are typically already allowed. Setting the computer account to Trusted for Delegation in Active Directory is related to Kerberos delegation scenarios, not basic Invoke-Command functionality. Running New-PSSession on Computer1 creates a persistent session, but it will fail if remoting is not enabled on Computer2 first.
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