Help with a command

RoRoCola 1 Reputation point
2022-02-25T12:23:35.543+00:00

I want to write a command that creates a table that lists, for each log entry in the Security log,
the log ID, and its retention period but have no idea where to start

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,462 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,121 Reputation points
    2022-03-04T11:37:01.713+00:00

    Hello @RoRoCola

    I can recommend the next 2 articles with different examples and ideas on how to create it and implement it, depending on your needs:

    https://devblogs.microsoft.com/scripting/use-powershell-to-parse-saved-event-logs-for-errors/
    https://devblogs.microsoft.com/scripting/use-powershell-to-perform-offline-analysis-of-security-logs/

    Hope this helps with your query,

    --
    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments