Get Zip file

PowerShellGet the contents of a zip file using powershell

 

 

 

 

 

 

Other Scripts in this range
New-zip Get-zip Extract-Zip Move-Zip Copy-Zip

 

 

 

 

 


 

 

 

 

 

############################################################
#
#    NAME : Get-ZIP
#
#    AUTHOR : Wessel van Sandwijk
#
#    Website : http://www.useful-it.nl
#
#    COMMENT : Get ZipFile
#
#    VERSION HISTORY :
#    1.0  07-MRT-2013  -  Initial Version
#
############################################################

Get-Zip c:\demo\myzip.zip

############################################################
#
#    FUNCTIONS
#
############################################################
function Get-Zip
{
    param([string]$zipfilename)
    if(test-path($zipfilename))
    {
        $shellApplication = new-object -com shell.application
        $zipPackage = $shellApplication.NameSpace($zipfilename)
        $zipPackage.Items() | Select Path
    }
}

 

About the Author

wvsandwijk

I am a Technical Specialist - Cloud Infrastructures from the Netherlands. My Skills are mainly PowerShell, VMWare, Hyper-V, Microsoft System Center products and Windows Azure Pack. I work for a company in Utrecht The Netherlands.

No Comments

Comments are closed.