Windows 10 (legacy) — Question 62
Your network contains an Active Directory domain. The domain contains 10 computers that run Windows 10. Users in the finance department use the computers.
You have a computer named Computer1 that runs Windows 10.
From Computer1, you plan to run a script that executes Windows PowerShell commands on the finance department computers.
You need to ensure that you can run the PowerShell commands on the finance department computers from Computer1.
What should you do on the finance department computers?
Answer options
- A. From the local Group Policy, enable the Allow Remote Shell Access setting.
- B. From the local Group Policy, enable the Turn on Script Execution setting.
- C. From the Windows PowerShell, run the Enable-MMAgent cmdlet.
- D. From the Windows PowerShell, run the Enable-PSRemoting cmdlet.
Correct answer: D
Explanation
The correct answer is D because running the Enable-PSRemoting cmdlet configures the computers to accept remote PowerShell commands. The other options do not enable the necessary remoting capabilities; A and B deal with different settings that do not facilitate remote command execution, while C pertains to a different feature unrelated to PowerShell remoting.