I’m using the following code to unzip files in the ‘current directory’. However, I’d like to loop through a list of folder locations and run this code at each location. Any any advice would be welcome.
$dir = dir *.zip
foreach($item in $dir)
{
Expand-Archive -Path $item -DestinationPath ($item -replace '.zip','') -Force
}