Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Suppress output for Expand-Archive?

$
0
0

I'm using Expand-Archive to extract a zip file and it's writing all the extracted contents out to console, in exactly the same format as gci would (mode, lastWriteTime,length,name columns).  

Is there any way to suppress the output?  This is PS 5.1.  I have tried the below without any success:

1: | out-null

2: >$null

3: $unzip = expand-archive.......


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>