exam questions

Exam 70-537 All Questions

View all questions & answers for the 70-537 exam

Exam 70-537 topic 1 question 39 discussion

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

You have an Azure Stack integrated system.
You establish a PowerShell session to a privileged endpoint, and you run several commands.
You need to ensure that logs of the session activity are exported to a file share.
Which cmdlet should you run?

  • A. Exit
  • B. Clear-Host
  • C. Out-Default
  • D. Close-PrivilegedEndpoint
  • E. Exit-PSSession
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
The privileged endpoint logs every action (and its corresponding output) that you perform in the PowerShell session. You must close the session by using the
Close-PrivilegedEndpoint cmdlet. This cmdlet correctly closes the endpoint, and transfers the log files to an external file share for retention.
Incorrect Answers:
A, E: If you close the privileged endpoint session by using the cmdlets Exit-PSSession or Exit, or you just close the PowerShell console, the transcript logs do not transfer to a file share. They remain in the privileged endpoint. The next time you run Close-PrivilegedEndpoint and include a file share, the transcript logs from the previous session(s) will also transfer.
References: https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-privileged-endpoint#close-the-privileged-endpoint-session

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
dd13
4 years, 5 months ago
In my experience, it is always exit-pssession and export logs to local server or file share
upvoted 1 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 ...