Skip to content

Details aus einer Evergreen-Bibliothek abrufen ​

Sobald die Bibliothek befüllt wurde, enthält sie Informationen zur Bibliothek – die Bibliothekskonfigurationsdatei, Versionsinformationen zu jeder Anwendung und die Anwendungsinstaller. Mit der Zeit enthält die Bibliothek Informationen zu mehreren Anwendungen und Versionen. Mit Get-EvergreenLibrary können Anwendungsinformationen aus der Bibliothek abgerufen werden:

powershell
Get-EvergreenLibrary -Path "\\server\EvergreenLibrary"

Library   : @{Name=EvergreenLibrary; Applications=System.Object[]}
Inventory : {@{ApplicationName=Microsoft.NET; Versions=}, @{ApplicationName=MicrosoftOneDrive; Versions=System.Object[]}, @{ApplicationName=MicrosoftEdge; Versions=System.Object[]},
            @{ApplicationName=MicrosoftEdgeWebView2Runtime; Versions=System.Object[]}, @{ApplicationName=MicrosoftTeams; Versions=}}

Get-EvergreenLibrary kann auch eine in einem Azure-Storage-Container gehostete Bibliothek lesen. Übergeben Sie dazu die HTTPS-URI der Bibliothekskonfigurationsdatei:

powershell
Get-EvergreenLibrary -Uri "https://<storage-account>.blob.core.windows.net/<container>/EvergreenLibrary.json"

Die Remotebibliothek gibt dieselben Eigenschaften Library und Inventory wie eine lokale Bibliothek zurück.

Das zurückgegebene Objekt enthält zwei Eigenschaften. Library entspricht der in EvergreenLibrary.json definierten Bibliothek:

powershell
Name         : EvergreenLibrary
Applications : {@{Name=Microsoft.NET; EvergreenApp=Microsoft.NET; Filter=$_.Architecture -eq "x64" -and $_.Installer -eq "windowsdesktop" -and $_.Channel -eq "LTS"},
               @{Name=MicrosoftOneDrive; EvergreenApp=MicrosoftOneDrive; Filter=$_.Architecture -eq "x64" -and $_.Ring -eq "Production" -and $_.Throttle -eq "100"},
               @{Name=MicrosoftEdge; EvergreenApp=MicrosoftEdge; Filter=$_.Channel -eq "Stable" -and $_.Architecture -eq "x64" -and $_.Release -eq "Enterprise"},
               @{Name=MicrosoftEdgeWebView2Runtime; EvergreenApp=MicrosoftEdgeWebView2Runtime; Filter=$_.Channel -eq "Stable" -and $_.Architecture -eq "x64"},
               @{Name=MicrosoftTeams; EvergreenApp=MicrosoftTeams; Filter=$_.Architecture -eq "x64" -and $_.Release -eq "Enterprise"}}

Inventory enthält die Anwendungsversionsinformationen für jede Anwendung in der Bibliothek:

powershell
ApplicationName : Microsoft.NET
Versions        : @{Version=6.0.7; URI=https://download.visualstudio.microsoft.com/download/pr/dc0e0e83-0115-4518-8b6a-590ed594f38a/65b63e41f6a80decb37fa3c5af79a53d/windowsdesktop-runtime-6
                  .0.7-win-x64.exe; Type=exe; Installer=windowsdesktop; Channel=LTS; Architecture=x64}

ApplicationName : MicrosoftOneDrive
Versions        : {@{Version=22.131.0619.0001; URI=https://oneclient.sfx.ms/Win/Prod/22.131.0619.0001/amd64/OneDriveSetup.exe; Type=exe;
                  Sha256=oRJK6vbSwqa8EUWBwjnXitZxz8r4RDrTcamdbEB20Mg=; Ring=Production; Architecture=AMD64}, @{Version=22.141.0703.0002;
                  URI=https://oneclient.sfx.ms/Win/Prod/22.141.0703.0002/amd64/OneDriveSetup.exe; Type=exe; Sha256=4jrVokZX9R7AGT9wyrwdVeQWxW1q1/4YTYW/A+EVUrk=; Ring=Production;
                  Architecture=AMD64}}

ApplicationName : MicrosoftEdge
Versions        : {@{Version=103.0.1264.62;
                  URI=https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/4a067ebd-1766-4463-a54b-1e5a525cb90f/MicrosoftEdgeEnterpriseX64.msi; Release=Enterprise;
                  Platform=Windows; Hash=5DA115179E6D4C84B5204BC135ABCB81AA8512C2AD0909440663E8332EE20FD0; Channel=Stable; Architecture=x64}, @{Version=103.0.1264.71;
                  URI=https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/52956063-8ecb-4407-9ac1-52db779bb126/MicrosoftEdgeEnterpriseX64.msi; Release=Enterprise;
                  Platform=Windows; Hash=9AB4B17469440056F2E59D7AA04622C6584DC8B47C087300DC97D979AC7D9F99; Channel=Stable; Architecture=x64}}

ApplicationName : MicrosoftTeams
Versions        : @{Version=1.5.00.17656; URI=https://statics.teams.cdn.office.net/production-windows-x64/1.5.00.17656/Teams_windows_x64.msi; Type=msi; Ring=General; Architecture=x64}

A stealthpuppy project.