Skip to content

Save-EvergreenApp - retrieval of the subdirectory it creates #607

Answered by keteague
keteague asked this question in Q&A
Discussion options

You must be logged in to vote

I found the answer to my question.

Rather than executing the command directly, assign it to a variable.
$download = Get-EvergreenApp -Name AdobeAcrobatReaderDC | Where-Object { $_.Language -eq "MUI" -and $_.Architecture -eq "x64" } | Save-EvergreenApp -Path C:\temp

Upon invocation of the above-mentioned command, it runs both Get-EvergreenApp and Save-EvergreenApp and stores the (extended) output to the $download variable.

I can now view all of this extended info using:
$download | Select -Property *

And then I can retrieve bits of this data:

Download path

($download).DirectoryName

Downloaded file name

($download).Name

Full path and file name

($download).FullName

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by keteague
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant