Zipping Files With Powershell

Version 6

    As our team makes more and more complex scripts and trigger actions, we were called on to zip a file as part of a trigger action.  This is the base code needed to use powershell to add a file to an existing zipfile.

     

    Requires Powershell 3 and .NET 4.5

     

    See Also

     

    Simple text logger for Powershell

    Find String in any File in Folder with PowerShell

    PowerShell Event Logger

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