Version 5

    As our team makes more and more complex scripts and trigger actions, we were called on to write to the windows event log a custom entry.  This is the base code needed to use powershell to write to a custom windows event log.



    You will have to run this command to tell Windows that you are creating a new log source

    New-EventLog -LogName Application -Source [Your New Source Name Here]


    Requires Powershell Version 3 or above


    See Also

    Simple text logger for Powershell

    Find String in any File in Folder with PowerShell

    Zipping Files With Powershell

    Check Multiple Nodes for a Running Service, Then Show Application Status Based on Number of Instances