exam questions

Exam 70-740 All Questions

View all questions & answers for the 70-740 exam

Exam 70-740 topic 1 question 207 discussion

Actual exam question from Microsoft's 70-740
Question #: 207
Topic #: 1
[All 70-740 Questions]

Your network contains an Active Directory domain named contoso.com. All server run Windows Server 2016.
As a domain administrator, you log on to a server named Server2 and open Windows PowerShell.
You need to establish an interactive PowerShell session to a server named Server1.
Which command should you run?

  • A. New-PSSession ""Name Server1
  • B. Enter-PSSession ""ComputerName Server1
  • C. Enable-PSRemoting Server1
  • D. Set-PSSession Configuration ""AccessMode Remote ""Name Server1
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
mhassan
Highly Voted 5 years, 1 month ago
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enter-pssession?view=powershell-7
upvoted 5 times
...
Dave_Holden
Most Recent 4 years, 4 months ago
The preferred way to start a new INTERACTIVE PS session is with new-PSsession. Here however answer A has incorrect syntax. The "name" option is incorrect. It would be correct if it was computername. So the only valid option left is B for enter-PSsession.
upvoted 1 times
...
Mountie
4 years, 7 months ago
Below example starts an interactive session with Server01, a remote computer. Example to Work with an interactive session: PS C:\> Enter-PSSession -ComputerName Server01 [Server01]: PS>
upvoted 1 times
...
panda
4 years, 10 months ago
I agree with the given answer. There are two types of remote operations. The one is between a server and a VM. (*1) The other is between a server and another one.(*2) The given situation is the latter. So cmdlet needs ComputerName parameter. (*1)It's mhassan has already propsed. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enter-pssession?view=powershell-7 which mhassan has propsed. (*2)https://www.itprotoday.com/server-virtualization/what-powershell-direct
upvoted 3 times
...
mhassan
5 years, 1 month ago
ref :-
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago