Examples/Download-AllActivePackages.ps1
# Downloads all active process packages of Orch1: drive to the current location on the C: drive. # To open the current location on the C drive in File Explorer, please execute ii c: # Get all package versions $packages = Get-OrchPackageVersion -Recurse -Path Orch1:\ # Filter for active packages $activePackages = $packages | Where-Object { $_.IsActive -eq $true } # Loop through all active packages and download them foreach ($package in $activePackages) { Export-OrchPackage -Id $package.Id -Version $package.Version -Path $package.Path -Verbose } |