This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Simple text logger for Powershell

As our team makes more and more complex scripts and trigger actions, we were called on to write data to a txt log file.  This is the base code needed to use powershell to create and write to a simple log file.

See Also

PowerShell Event Logger

Zipping Files With Powershell

Find String in any File in Folder with PowerShell

Check Multiple Nodes for a Running Service, Then Show up or Down based on the number of Servers Running the Service

simple text logger for powershell.ps1