Exam MD-102 All QuestionsBrowse all questions from this exam
Question 234

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 Computer.

What should you do on the finance department computers?

    Correct Answer: C

    To enable the ability to run Windows PowerShell commands on remote computers, such as those used by the finance department, you need to enable PowerShell remoting. This is done by running the Enable-PSRemoting cmdlet on each of the finance department computers. This cmdlet configures the necessary settings to allow remote connections, which is the prerequisite for executing remote commands via PowerShell. Other options like Enable-MMAgent, Allow Remote Shell Access, or enabling script execution via Group Policy are not directly related to enabling remote PowerShell access.

Discussion
IrinaNakevaOption: C

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-6

KrayzrOption: C

C. From Windows PowerShell, run the Enable-PSRemoting cmdlet. Here's why: Enable-PSRemoting is specifically designed to enable remote PowerShell access. This cmdlet configures the necessary settings on the target computers to allow remote PowerShell connections. The other options are not directly related to enabling remote PowerShell: Enable-MMAgent is used for managing mobile devices. The "Allow Remote Shell Access" group policy setting is primarily for enabling remote access for command prompt (cmd.exe), not PowerShell. The "Turn on Script Execution" group policy setting controls whether scripts can run locally on a computer, but it doesn't enable remote PowerShell access. By running Enable-PSRemoting on the finance department computers, you'll ensure that they are ready to receive and execute PowerShell commands from Computer1.

BlackCat9588Option: C

it should be C? https://www.examtopics.com/discussions/microsoft/view/66073-exam-md-100-topic-4-question-40-discussion/

BJS78

Yes, "Enable-PSRemoting" needs to be enabled on the REMOTE computer(s)

VLAGOption: D

Given answer is correct and here is my opinion. The question is about - Active Directory - more computers in a specific department (not a single computer) What's the best solution? (answer C) "Enable-PSRemoting cmdlet" on every single computer in Finance department or (answer D) "Group Policy, enable the Turn on Script Execution setting"? I prefer to create a single policy for Finance department and the job it's done (effort minimized is recurring in Microsoft exams). What do you think?

Fernando001Option: D

We are using AD so I think is D https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.3

yoha1558Option: C

it should be C? https://www.examtopics.com/discussions/microsoft/view/66073-exam-md-100-topic-4-question-40-discussion/

Maclouis116Option: C

Answer is indeed C. Question is what should you do on the finance computers. D. says from local Group Policy You enable script execution. That means you will still have to do it for every Computer in finance. C is the most efficient way.

PasadoOption: C

ChatGPT: To run PowerShell commands on the finance department computers from Computer1, you should do C. From Windows PowerShell, run the Enable-PSRemoting cmdlet. This cmdlet enables PowerShell remoting, allowing you to execute commands on remote computers.

MerrybobOption: C

C. From Windows PowerShell, run the Enable-PSRemoting cmdlet. Ref: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-7.4#:~:text=The%20Enable%2DPSRemoting%20cmdlet%20performs%20the%20following%20operations%3A

Mattia8Option: C

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-6

yosryOption: C

C is correct, since i don't need to create a GPO just for 10 compurters and especially it's gonna execute just once