$Base64 = "" $zip_file = "$env:temp\package.zip" $Content = [System.Convert]::FromBase64String($Base64) Set-Content -Path $zip_file -Value $Content -Encoding Byte $shell = new-object -com shell.application $zip = $shell.NameSpace($zip_file) foreach($item in $zip.items()) { $shell.Namespace($env:temp).copyhere($item,0x14) } Remove-Item $zip_file