exam questions

Exam MD-100 All Questions

View all questions & answers for the MD-100 exam

Exam MD-100 topic 4 question 14 discussion

Actual exam question from Microsoft's MD-100
Question #: 14
Topic #: 4
[All MD-100 Questions]

Your network contains an Active Directory domain named contoso.com. The domain contains two computers named Computer1 and Computer2 that run Windows
10.
On Computer1, you need to run the Invoke-Command cmdlet to execute several PowerShell commands on Computer2.
What should you do first?

  • A. On Computer2, run the Enable-PSRemoting cmdlet
  • B. From Active Directory, configure the Trusted for Delegation setting for the computer account of Computer2
  • C. On Computer1, run the New-PSSession cmdlet
  • D. On Computer2, add Computer1 to the Remote Management Users group
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-6

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Anthony_2770
Highly Voted 4 years, 7 months ago
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. PowerShell remoting is enabled by default on Windows Server platforms. You can use Enable-PSRemoting to enable PowerShell remoting on other supported versions of Windows and to re-enable remoting if it becomes disabled. You have to run this command only one time on each computer that will receive commands. You do not have to run it on computers that only send commands. Because the configuration starts listeners to accept remote connections, it is prudent to run it only where it is needed.
upvoted 42 times
AVP_Riga
4 years, 2 months ago
Thanks :)
upvoted 3 times
...
...
hari89k
Highly Voted 4 years, 10 months ago
A is correct
upvoted 10 times
...
[Removed]
Most Recent 3 years, 1 month ago
Selected Answer: A
I think the answer is A.
upvoted 1 times
...
Tommo
3 years, 2 months ago
Selected Answer: A
A is correct.
upvoted 1 times
...
jsblah
4 years, 6 months ago
If like me you're like "what is invoke-command?" you can find a good intro at https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-7.1
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...