nerdexam
Microsoft

70-537 · Question #56

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…

The correct answer is D. Close-PrivilegedEndpoint. 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…

Manage Azure Stack infrastructure

Question

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?

Options

  • AExit
  • BClear-Host
  • COut-Default
  • DClose-PrivilegedEndpoint
  • EExit-PSSession

How the community answered

(21 responses)
  • A
    5% (1)
  • B
    10% (2)
  • D
    81% (17)
  • E
    5% (1)

Explanation

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 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. endpoint#close-the-privileged-endpoint-session

Topics

#privileged endpoint#PowerShell#session logging#Close-PrivilegedEndpoint

Community Discussion

No community discussion yet for this question.

Full 70-537 Practice