What happened?
When using Invoke-EvergreenLibraryUpdate, OneDrive json file contains mutiple paths including wrong ones
[
{
"Version": "24.132.0701.0003",
"URI": "https://oneclient.sfx.ms/Win/Installers/24.132.0701.0003/OneDriveSetup.exe",
"Type": "exe",
"Throttle": "100",
"Sha256": "09f681a862c55b12d6ca2f554609b42a5f9852a52cadb86611079f31428b5840",
"Ring": "Enterprise",
"Path": [
"\\\\prd-chc-smb.boursorama.fr\\Chocolatey_Repo\\EvergreenLibrary\\ms-onedrive\\Enterprise\\24.132.0701.0003\\x86\\OneDriveSetup.exe",
**"\\\\prd-chc-smb.boursorama.fr\\Chocolatey_Repo\\EvergreenLibrary\\ms-onedrive\\Enterprise\\24.132.0701.0003\\x64\\OneDriveSetup.exe"**
],
"Architecture": "x86"
},
{
"Version": "24.132.0701.0003",
"URI": "https://oneclient.sfx.ms/Win/Installers/24.132.0701.0003/amd64/OneDriveSetup.exe",
"Type": "exe",
"Throttle": "100",
"Sha256": "cdca470f84522b8d1251ad326bcf65a167fbbebf38502d1497a51bc93d2533d4",
"Ring": "Enterprise",
"Path": [
`"\\\\prd-chc-smb.boursorama.fr\\Chocolatey_Repo\\EvergreenLibrary\\ms-onedrive\\Enterprise\\24.132.0701.0003\\x86\\OneDriveSetup.exe"`,
"\\\\prd-chc-smb.boursorama.fr\\Chocolatey_Repo\\EvergreenLibrary\\ms-onedrive\\Enterprise\\24.132.0701.0003\\x64\\OneDriveSetup.exe"
],
"Architecture": "x64"
}
]
Version
2410.1565
What PowerShell edition/s are you running Evergreen on?
Windows PowerShell
Which operating system/s are you running Evergreen on?
Windows Server 2016+
Have you reviewed the documentation?
Verbose output
Invoke-EvergreenLibraryUpdate -Path $LibraryRootPath
VERBOSE: Library exists: \\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\EvergreenLibrary.json.
VERBOSE: Start-EvergreenLibraryUpdate: Application path: \\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive.
VERBOSE: Start-EvergreenLibraryUpdate: Query Evergreen for: ms-onedrive.
VERBOSE: Start-EvergreenLibraryUpdate: Filter: $_.Ring -eq "Enterprise" -and $_.Architecture -notmatch "ARM".
VERBOSE: Function path: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2410.1565\Apps\Get-MicrosoftOneDrive.ps1
VERBOSE: Function exists: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2410.1565\Apps\Get-MicrosoftOneDrive.ps1.
VERBOSE: Dot sourcing: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2410.1565\Apps\Get-MicrosoftOneDrive.ps1.
VERBOSE: Get-FunctionResource: read application resource strings from [C:\Program Files\WindowsPowerShell\Modules\Evergreen\2410.1565\Manifests\MicrosoftOneDrive.json]
VERBOSE: Calling: Get-MicrosoftOneDrive.
VERBOSE: Invoke-EvergreenWebRequest: Adding ContentType.
VERBOSE: Invoke-EvergreenWebRequest: Using temp file C:\Users\adm_roy\AppData\Local\Temp\5\tmp822F.tmp.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/127.0.2651.105.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: ContentType: application/xml; charset=utf-8.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UseBasicParsing: True.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: Method: Default.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: Uri: https://g.live.com/1rewlive5skydrive/OneDriveEnterpriseV2.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: PassThru: True.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: OutFile: C:\Users\adm_roy\AppData\Local\Temp\5\tmp822F.tmp.
VERBOSE: GET https://g.live.com/1rewlive5skydrive/OneDriveEnterpriseV2 with 0-byte payload
VERBOSE: received 899-byte response of content type application/xml
VERBOSE: Invoke-EvergreenWebRequest: Response: 200.
VERBOSE: Invoke-EvergreenWebRequest: Content type: application/xml.
VERBOSE: Invoke-EvergreenWebRequest: Returning content of length: 8.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-Architecture: Architecture not found in https://oneclient.sfx.ms/Win/Installers/24.132.0701.0003/OneDriveSetup.exe, defaulting to x86.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Invoke-EvergreenWebRequest: Adding ContentType.
VERBOSE: Invoke-EvergreenWebRequest: Using temp file C:\Users\adm_roy\AppData\Local\Temp\5\tmp827E.tmp.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/127.0.2651.105.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: ContentType: application/xml; charset=utf-8.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UseBasicParsing: True.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: Method: Default.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: Uri: https://g.live.com/1rewlive5skydrive/MsitFastV2.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: PassThru: True.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: OutFile: C:\Users\adm_roy\AppData\Local\Temp\5\tmp827E.tmp.
VERBOSE: GET https://g.live.com/1rewlive5skydrive/MsitFastV2 with 0-byte payload
VERBOSE: received 896-byte response of content type application/xml
VERBOSE: Invoke-EvergreenWebRequest: Response: 200.
VERBOSE: Invoke-EvergreenWebRequest: Content type: application/xml.
VERBOSE: Invoke-EvergreenWebRequest: Returning content of length: 8.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-Architecture: Architecture not found in https://oneclient.sfx.ms/Win/Installers/24.201.1006.0005/OneDriveSetup.exe, defaulting to x86.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Invoke-EvergreenWebRequest: Adding ContentType.
VERBOSE: Invoke-EvergreenWebRequest: Using temp file C:\Users\adm_roy\AppData\Local\Temp\5\tmp82CD.tmp.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/127.0.2651.105.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: ContentType: application/xml; charset=utf-8.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UseBasicParsing: True.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: Method: Default.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: Uri: https://g.live.com/1rewlive5skydrive/OneDriveProductionV2.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: PassThru: True.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: OutFile: C:\Users\adm_roy\AppData\Local\Temp\5\tmp82CD.tmp.
VERBOSE: GET https://g.live.com/1rewlive5skydrive/OneDriveProductionV2 with 0-byte payload
VERBOSE: received 1739-byte response of content type application/xml
VERBOSE: Invoke-EvergreenWebRequest: Response: 200.
VERBOSE: Invoke-EvergreenWebRequest: Content type: application/xml.
VERBOSE: Invoke-EvergreenWebRequest: Returning content of length: 13.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-Architecture: Architecture not found in https://oneclient.sfx.ms/Win/Installers/24.201.1006.0005/OneDriveSetup.exe, defaulting to x86.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-Architecture: Architecture not found in https://oneclient.sfx.ms/Win/Installers/24.206.1013.0004/OneDriveSetup.exe, defaulting to x86.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Invoke-EvergreenWebRequest: Adding ContentType.
VERBOSE: Invoke-EvergreenWebRequest: Using temp file C:\Users\adm_roy\AppData\Local\Temp\5\tmp834B.tmp.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/127.0.2651.105.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: ContentType: application/xml; charset=utf-8.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UseBasicParsing: True.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: Method: Default.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: Uri: https://g.live.com/1rewlive5skydrive/MsitSlowV2.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: PassThru: True.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: OutFile: C:\Users\adm_roy\AppData\Local\Temp\5\tmp834B.tmp.
VERBOSE: GET https://g.live.com/1rewlive5skydrive/MsitSlowV2 with 0-byte payload
VERBOSE: received 1733-byte response of content type application/xml
VERBOSE: Invoke-EvergreenWebRequest: Response: 200.
VERBOSE: Invoke-EvergreenWebRequest: Content type: application/xml.
VERBOSE: Invoke-EvergreenWebRequest: Returning content of length: 13.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-Architecture: Architecture not found in https://oneclient.sfx.ms/Win/Installers/24.211.1020.0001/OneDriveSetup.exe, defaulting to x86.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-Architecture: Architecture not found in https://oneclient.sfx.ms/Win/Installers/24.216.1027.0001/OneDriveSetup.exe, defaulting to x86.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Invoke-EvergreenWebRequest: Adding ContentType.
VERBOSE: Invoke-EvergreenWebRequest: Using temp file C:\Users\adm_roy\AppData\Local\Temp\5\tmp83C9.tmp.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/127.0.2651.105.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: ContentType: application/xml; charset=utf-8.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UseBasicParsing: True.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: Method: Default.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: Uri: https://g.live.com/1rewlive5skydrive/OneDriveInsiderV2.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: PassThru: True.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: OutFile: C:\Users\adm_roy\AppData\Local\Temp\5\tmp83C9.tmp.
VERBOSE: GET https://g.live.com/1rewlive5skydrive/OneDriveInsiderV2 with 0-byte payload
VERBOSE: received 1739-byte response of content type application/xml
VERBOSE: Invoke-EvergreenWebRequest: Response: 200.
VERBOSE: Invoke-EvergreenWebRequest: Content type: application/xml.
VERBOSE: Invoke-EvergreenWebRequest: Returning content of length: 13.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-Architecture: Architecture not found in https://oneclient.sfx.ms/Win/Installers/24.206.1013.0004/OneDriveSetup.exe, defaulting to x86.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-Architecture: Architecture not found in https://oneclient.sfx.ms/Win/Installers/24.211.1020.0001/OneDriveSetup.exe, defaulting to x86.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Start-EvergreenLibraryUpdate: Download count for MicrosoftOneDrive: 2.
VERBOSE: Performing the operation "Save-EvergreenApp" on target "Downloading 2 application installers.".
VERBOSE: Path exists: \\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive.
VERBOSE: URL: https://oneclient.sfx.ms/Win/Installers/24.132.0701.0003/OneDriveSetup.exe.
VERBOSE: New-EvergreenPath: Ring: Enterprise.
VERBOSE: New-EvergreenPath: Path exists: Microsoft.PowerShell.Core\FileSystem::\\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise.
VERBOSE: New-EvergreenPath: Version: 24.132.0701.0003.
VERBOSE: New-EvergreenPath: Path exists: Microsoft.PowerShell.Core\FileSystem::\\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise\24.132.0701.0003.
VERBOSE: New-EvergreenPath: Architecture: x86.
VERBOSE: New-EvergreenPath: Path exists: Microsoft.PowerShell.Core\FileSystem::\\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise\24.132.0701.0003\x86.
VERBOSE: File exists: Microsoft.PowerShell.Core\FileSystem::\\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise\24.132.0701.0003\x86\OneDriveSetup.exe.
VERBOSE: URL: https://oneclient.sfx.ms/Win/Installers/24.132.0701.0003/amd64/OneDriveSetup.exe.
VERBOSE: New-EvergreenPath: Ring: Enterprise.
VERBOSE: New-EvergreenPath: Path exists: Microsoft.PowerShell.Core\FileSystem::\\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise.
VERBOSE: New-EvergreenPath: Version: 24.132.0701.0003.
VERBOSE: New-EvergreenPath: Path exists: Microsoft.PowerShell.Core\FileSystem::\\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise\24.132.0701.0003.
VERBOSE: New-EvergreenPath: Architecture: x64.
VERBOSE: New-EvergreenPath: Path exists: Microsoft.PowerShell.Core\FileSystem::\\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise\24.132.0701.0003\x64.
VERBOSE: File exists: Microsoft.PowerShell.Core\FileSystem::\\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise\24.132.0701.0003\x64\OneDriveSetup.exe.
VERBOSE: Complete.
VERBOSE: Start-EvergreenLibraryUpdate: Add path to object: \\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise\24.132.0701.0003\x86\OneDriveSetup.exe \\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Ent
erprise\24.132.0701.0003\x64\OneDriveSetup.exe
VERBOSE: Start-EvergreenLibraryUpdate: Add path to object: \\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise\24.132.0701.0003\x86\OneDriveSetup.exe \\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Ent
erprise\24.132.0701.0003\x64\OneDriveSetup.exe
VERBOSE: Export-EvergreenApp: Input object count: 2
VERBOSE: Export-EvergreenApp: Output object count: 2
VERBOSE: Performing the operation "Output to File" on target "\\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\ms-onedrive.json".
Installer Status
--------- ------
\\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise\24.132.0701.0003\x64\OneDriveSetup.exe UNCHANGED
\\prd-chc-smb.boursorama.fr\Chocolatey_Repo\EvergreenLibrary\ms-onedrive\Enterprise\24.132.0701.0003\x86\OneDriveSetup.exe UNCHANGED
What happened?
When using Invoke-EvergreenLibraryUpdate, OneDrive json file contains mutiple paths including wrong ones
[ { "Version": "24.132.0701.0003", "URI": "https://oneclient.sfx.ms/Win/Installers/24.132.0701.0003/OneDriveSetup.exe", "Type": "exe", "Throttle": "100", "Sha256": "09f681a862c55b12d6ca2f554609b42a5f9852a52cadb86611079f31428b5840", "Ring": "Enterprise", "Path": [ "\\\\prd-chc-smb.boursorama.fr\\Chocolatey_Repo\\EvergreenLibrary\\ms-onedrive\\Enterprise\\24.132.0701.0003\\x86\\OneDriveSetup.exe", **"\\\\prd-chc-smb.boursorama.fr\\Chocolatey_Repo\\EvergreenLibrary\\ms-onedrive\\Enterprise\\24.132.0701.0003\\x64\\OneDriveSetup.exe"** ], "Architecture": "x86" }, { "Version": "24.132.0701.0003", "URI": "https://oneclient.sfx.ms/Win/Installers/24.132.0701.0003/amd64/OneDriveSetup.exe", "Type": "exe", "Throttle": "100", "Sha256": "cdca470f84522b8d1251ad326bcf65a167fbbebf38502d1497a51bc93d2533d4", "Ring": "Enterprise", "Path": [ `"\\\\prd-chc-smb.boursorama.fr\\Chocolatey_Repo\\EvergreenLibrary\\ms-onedrive\\Enterprise\\24.132.0701.0003\\x86\\OneDriveSetup.exe"`, "\\\\prd-chc-smb.boursorama.fr\\Chocolatey_Repo\\EvergreenLibrary\\ms-onedrive\\Enterprise\\24.132.0701.0003\\x64\\OneDriveSetup.exe" ], "Architecture": "x64" } ]Version
2410.1565
What PowerShell edition/s are you running Evergreen on?
Windows PowerShell
Which operating system/s are you running Evergreen on?
Windows Server 2016+
Have you reviewed the documentation?
Verbose output