Windows Defender & Event Viewer

Welcome Forums General PowerShell Q&A Windows Defender & Event Viewer

Viewing 1 reply thread
  • Author
    • #248470
      Topics: 1
      Replies: 0
      Points: -67
      Rank: Member

      I’m trying to write a PowerShell script to automate some scanning activities using Windows Defender. I’ve noticed a limitation with the published code which I’m interested to know whether or not there is a workaround.

      Is there any reason why when you run this:

      That the scan does not get added into the event viewer?

      I need this because I need a way to keep a log of what files were scanned? If I could output the results of the scan directly from PowerShell that would be even better but I don’t believe this function returns anything. Any pointers appreciated.

      • This topic was modified 2 months, 3 weeks ago by grokkit. Reason: code formatting
    • #255203
      Topics: 6
      Replies: 120
      Points: 129
      Helping Hand
      Rank: Participant

      Your code look a little wonky

Viewing 1 reply thread
  • You must be logged in to reply to this topic.