exam questions

Exam 70-744 All Questions

View all questions & answers for the 70-744 exam

Exam 70-744 topic 1 question 165 discussion

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

You have a server named Server1.
You need to configure PowerShell logging to capture dynamic code generation. The solution must minimize the number of events that are logged.
What should you configure?

  • A. protected event logging
  • B. script block logging
  • C. module logging
  • D. system-wide transcription
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
References:
https://www.rootusers.com/enable-and-configure-module-script-block-and-transcription-logging-in-windows-powershell/

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
loonix
Highly Voted 4 years, 10 months ago
wrong, the correct answer is B. source: https://devblogs.microsoft.com/powershell/powershell-the-blue-team/ "When you enable script block logging, PowerShell records the content of all script blocks that it processes. If a script block uses dynamic code generation (i.e.: $command = “‘Hello World'”; Invoke-Expression $command), PowerShell will log the invocation of this generated script block as well. This provides complete insight into the script-based activity on a system – including scripts or applications that leverage dynamic code generation in an attempt to evade detection."
upvoted 6 times
...
SamsOtro
Most Recent 4 years, 5 months ago
Agree with B. Script Block logging https://devblogs.microsoft.com/powershell/powershell-the-blue-team/
upvoted 2 times
...
thattanguyz
4 years, 8 months ago
Agreed w/ Loonix. B is the answered "Script Block logging generates less events as compared to the Module logging but they are more detailed." https://medium.com/@ammadb/powershell-logging-module-logging-vs-script-block-logging-7aa74bf66261'
upvoted 3 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