Powershell unzip error Powershell unzip error powershell powershell

Powershell unzip error


you need to create the "c:\temp\zipfiles" folder before you set the $destination variable,this kind of sloppy way but it will do the job :)

#script#unzip folder$shell_app = new-object -com shell.application$filename = "test.zip"$zip_file = $shell_app.namespace("C:\temp\$filename")#set the destination directory for the extractsif (!(Test-Path "C:\temp\zipfiles\")) {     mkdir C:\temp\zipfiles}$destination = $shell_app.namespace("C:\temp\zipfiles")#unzip the file$destination.Copyhere($zip_file.items())