Powershell hide progress of Expand-Archive cmdlet

Viewed 4694

I have a script that does two things (so far). Download a ZIP file from a web server to my desktop, and then unzip it. The download part works perfectly. The unzip part uses the 'Expand-Archive' cmdlet. I would like to hide the progress message for the 'Expand-Archive' cmdlet.

So far, for the unzip, I have this and it doesn't seem to work:

$progressPreference = 'SilentlyContinue'
Expand-Archive c:\Users\Administrator\Desktop\<filename>.zip -DestinationPath C:\Users\Administrator\Desktop\

It unzips just fine, but shows the blue and yellow progress indicators that I would prefer to hide.

0 Answers
Related