evergreen
evergreen copied to clipboard
[Bug]: MicrosoftOneDrive sha256 is in base64(?) format
What happened?
Get-EvergreenApp microsoftonedrive returns strings for the sha256 property that appear to be in base64 format rather than Hexidecimal. I don't know how to convert them to confirm. ð
Version
2312.878
What PowerShell edition/s are you running Evergreen on?
Windows PowerShell
Which operating system/s are you running Evergreen on?
Windows 10+
Have you reviewed the documentation?
- [X] Troubleshooting at: https://stealthpuppy.com/evergreen/troubleshoot/
- [X] Known issues at: https://stealthpuppy.com/evergreen/issues/
Verbose output
Get-EvergreenApp microsoftonedrive -Verbose
VERBOSE: Function path: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2312.878\Apps\Get-microsoftonedrive.ps1
VERBOSE: Function exists: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2312.878\Apps\Get-microsoftonedrive.ps1.
VERBOSE: Dot sourcing: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2312.878\Apps\Get-microsoftonedrive.ps1.
VERBOSE: Get-FunctionResource: read application resource strings from [C:\Program
Files\WindowsPowerShell\Modules\Evergreen\2312.878\Manifests\microsoftonedrive.json]
VERBOSE: Calling: Get-microsoftonedrive.
VERBOSE: Invoke-EvergreenWebRequest: Adding ContentType.
VERBOSE: Invoke-EvergreenWebRequest: Using temp file C:\Users\syseh\AppData\Local\Temp\1\tmpCA02.tmp.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0;
en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/7.0.500.0 Safari/534.6.
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\syseh\AppData\Local\Temp\1\tmpCA02.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-Architecture: Architecture not found in
https://oneclient.sfx.ms/Win/Installers/23.209.1008.0002/OneDriveSetup.exe, defaulting to x86.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Invoke-EvergreenWebRequest: Adding ContentType.
VERBOSE: Invoke-EvergreenWebRequest: Using temp file C:\Users\syseh\AppData\Local\Temp\1\tmpCA90.tmp.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0;
en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/7.0.500.0 Safari/534.6.
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\syseh\AppData\Local\Temp\1\tmpCA90.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-Architecture: Architecture not found in
https://oneclient.sfx.ms/Win/Installers/24.030.0211.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\syseh\AppData\Local\Temp\1\tmpCAC0.tmp.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0;
en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/7.0.500.0 Safari/534.6.
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\syseh\AppData\Local\Temp\1\tmpCAC0.tmp.
VERBOSE: GET https://g.live.com/1rewlive5skydrive/OneDriveProductionV2 with 0-byte payload
VERBOSE: received 2618-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: 18.
VERBOSE: Get-FileType: found extension: [exe]
VERBOSE: Get-Architecture: Architecture not found in
https://oneclient.sfx.ms/Win/Installers/24.015.0121.0003/OneDriveSetup.exe, defaulting to x86.
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.020.0128.0003/OneDriveSetup.exe, defaulting to x86.
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.023.0131.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\syseh\AppData\Local\Temp\1\tmpCAFF.tmp.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0;
en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/7.0.500.0 Safari/534.6.
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\syseh\AppData\Local\Temp\1\tmpCAFF.tmp.
VERBOSE: GET https://g.live.com/1rewlive5skydrive/MsitSlowV2 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-Architecture: Architecture not found in
https://oneclient.sfx.ms/Win/Installers/24.025.0204.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\syseh\AppData\Local\Temp\1\tmpCB2F.tmp.
VERBOSE: Invoke-EvergreenWebRequest: Invoke-WebRequest parameter: UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0;
en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/7.0.500.0 Safari/534.6.
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\syseh\AppData\Local\Temp\1\tmpCB2F.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-Architecture: Architecture not found in
https://oneclient.sfx.ms/Win/Installers/24.023.0131.0003/OneDriveSetup.exe, defaulting to x86.
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.025.0204.0001/OneDriveSetup.exe, defaulting to x86.
VERBOSE: Get-FileType: found extension: [exe]
Version : 23.209.1008.0002
Throttle : 100
Architecture : x86
Ring : Enterprise
Sha256 : Q2kh5Whzx+lPgpy+W58+M2NKd2JSOdZU80g3+a9oUJo=
Type : exe
URI : https://oneclient.sfx.ms/Win/Installers/23.209.1008.0002/OneDriveSetup.exe
Version : 23.209.1008.0002
Throttle : 100
Architecture : ARM64
Ring : Enterprise
Type : exe
Sha256 : aAx3gAn568DI7VTlCM6GGg7O9NAqT6edEGTr9f4NGZ0=
URI : https://oneclient.sfx.ms/Win/Installers/23.209.1008.0002/arm64/OneDriveSetup.exe
Version : 23.209.1008.0002
Throttle : 100
Architecture : AMD64
Ring : Enterprise
Type : exe
Sha256 : 4rX5bXdtzujmFu6u12fKCcudIEoMMDNUDpgMIrgM79I=
URI : https://oneclient.sfx.ms/Win/Installers/23.209.1008.0002/amd64/OneDriveSetup.exe
Version : 24.025.0204.0001
Throttle : 10
Architecture : x86
Ring : Insider
Sha256 : CEuUptv/J6/nmkTs2/hkk0BonQAk86QPUxMqw9stmcI=
Type : exe
URI : https://oneclient.sfx.ms/Win/Installers/24.025.0204.0001/OneDriveSetup.exe
Version : 24.025.0204.0001
Throttle : 10
Architecture : AMD64
Ring : Insider
Type : exe
Sha256 : fLuQuVgnKWHhmulkFNRvSO5w5DmvDrFz6kOQ/OlQLtw=
URI : https://oneclient.sfx.ms/Win/Installers/24.025.0204.0001/amd64/OneDriveSetup.exe
Version : 24.025.0204.0001
Throttle : 10
Architecture : ARM64
Ring : Insider
Type : exe
Sha256 : kMiKtiZywwhBavhBaTL3mQWUv9td9Tozk7tfMYenyqs=
URI : https://oneclient.sfx.ms/Win/Installers/24.025.0204.0001/arm64/OneDriveSetup.exe
Version : 24.023.0131.0003
Throttle : 100
Architecture : AMD64
Ring : Insider
Type : exe
Sha256 : JYGkTlgOOVc7Zx6iLf7bIlPTI2XDjtyJBh8SHBwZ0VQ=
URI : https://oneclient.sfx.ms/Win/Installers/24.023.0131.0003/amd64/OneDriveSetup.exe
Version : 24.023.0131.0003
Throttle : 100
Architecture : ARM64
Ring : Insider
Type : exe
Sha256 : d5Y7E8Tl/Kua6th/mJY+QgUd0b63KkVPLk2uUUzh38A=
URI : https://oneclient.sfx.ms/Win/Installers/24.023.0131.0003/arm64/OneDriveSetup.exe
Version : 24.023.0131.0003
Throttle : 100
Architecture : x86
Ring : Insider
Sha256 : pkpeSiOOSJe92x7IcPDOP94haWaRXnlAKFN/Hb8eRMk=
Type : exe
URI : https://oneclient.sfx.ms/Win/Installers/24.023.0131.0003/OneDriveSetup.exe
Version : 24.030.0211.0001
Throttle : 100
Architecture : x86
Ring : InternalFast
Sha256 : 5RkuTHkN6kwdvspQV9RJbkAE7SlAAgMVAqjgNzKQm+M=
Type : exe
URI : https://oneclient.sfx.ms/Win/Installers/24.030.0211.0001/OneDriveSetup.exe
Version : 24.030.0211.0001
Throttle : 100
Architecture : ARM64
Ring : InternalFast
Type : exe
Sha256 : 321wBJE5DTGEQPbC9gA86X6rDJOMwS88NuBmBj4ndN8=
URI : https://oneclient.sfx.ms/Win/Installers/24.030.0211.0001/arm64/OneDriveSetup.exe
Version : 24.030.0211.0001
Throttle : 100
Architecture : AMD64
Ring : InternalFast
Type : exe
Sha256 : +lgI1/Ip4hX4MJbSHtjBqwomi+MkdRZpHEae6r0Zlyw=
URI : https://oneclient.sfx.ms/Win/Installers/24.030.0211.0001/amd64/OneDriveSetup.exe
Version : 24.025.0204.0001
Throttle : 100
Architecture : ARM64
Ring : InternalSlow
Type : exe
Sha256 : kMiKtiZywwhBavhBaTL3mQWUv9td9Tozk7tfMYenyqs=
URI : https://oneclient.sfx.ms/Win/Installers/24.025.0204.0001/arm64/OneDriveSetup.exe
Version : 24.025.0204.0001
Throttle : 100
Architecture : AMD64
Ring : InternalSlow
Type : exe
Sha256 : fLuQuVgnKWHhmulkFNRvSO5w5DmvDrFz6kOQ/OlQLtw=
URI : https://oneclient.sfx.ms/Win/Installers/24.025.0204.0001/amd64/OneDriveSetup.exe
Version : 24.025.0204.0001
Throttle : 100
Architecture : x86
Ring : InternalSlow
Sha256 : CEuUptv/J6/nmkTs2/hkk0BonQAk86QPUxMqw9stmcI=
Type : exe
URI : https://oneclient.sfx.ms/Win/Installers/24.025.0204.0001/OneDriveSetup.exe
Version : 24.023.0131.0003
Throttle : 1
Architecture : x86
Ring : Production
Sha256 : pkpeSiOOSJe92x7IcPDOP94haWaRXnlAKFN/Hb8eRMk=
Type : exe
URI : https://oneclient.sfx.ms/Win/Installers/24.023.0131.0003/OneDriveSetup.exe
Version : 24.023.0131.0003
Throttle : 1
Architecture : ARM64
Ring : Production
Type : exe
Sha256 : d5Y7E8Tl/Kua6th/mJY+QgUd0b63KkVPLk2uUUzh38A=
URI : https://oneclient.sfx.ms/Win/Installers/24.023.0131.0003/arm64/OneDriveSetup.exe
Version : 24.023.0131.0003
Throttle : 1
Architecture : AMD64
Ring : Production
Type : exe
Sha256 : JYGkTlgOOVc7Zx6iLf7bIlPTI2XDjtyJBh8SHBwZ0VQ=
URI : https://oneclient.sfx.ms/Win/Installers/24.023.0131.0003/amd64/OneDriveSetup.exe
Version : 24.020.0128.0003
Throttle : 50
Architecture : AMD64
Ring : Production
Type : exe
Sha256 : fZlUL+2S2/M/DNhf379fVDse9/LpR7Sl4VXA3KqXdsI=
URI : https://oneclient.sfx.ms/Win/Installers/24.020.0128.0003/amd64/OneDriveSetup.exe
Version : 24.020.0128.0003
Throttle : 50
Architecture : ARM64
Ring : Production
Type : exe
Sha256 : VImmUfJYvWsCApPLvzTJA6qcv4qeLiQxltZVcdBSGZg=
URI : https://oneclient.sfx.ms/Win/Installers/24.020.0128.0003/arm64/OneDriveSetup.exe
Version : 24.020.0128.0003
Throttle : 50
Architecture : x86
Ring : Production
Sha256 : aZtZ43UMAN7/M0TxyumZpYDYOdmrIOk1WnVAlbG/tKk=
Type : exe
URI : https://oneclient.sfx.ms/Win/Installers/24.020.0128.0003/OneDriveSetup.exe
Version : 24.015.0121.0003
Throttle : 100
Architecture : AMD64
Ring : Production
Type : exe
Sha256 : 0ETfDmeVLEAgHXCr1nb5tM5LFo2Fq1ONJptuVbCCBaM=
URI : https://oneclient.sfx.ms/Win/Installers/24.015.0121.0003/amd64/OneDriveSetup.exe
Version : 24.015.0121.0003
Throttle : 100
Architecture : ARM64
Ring : Production
Type : exe
Sha256 : R3k4GCv6sJdiRSi2BC+UBuJGARoNis8N91Lh+NPfM/A=
URI : https://oneclient.sfx.ms/Win/Installers/24.015.0121.0003/arm64/OneDriveSetup.exe
Version : 24.015.0121.0003
Throttle : 100
Architecture : x86
Ring : Production
Sha256 : sOmwYfvRx4waEt5HVWfZZAk+pSN0IlLr+pkPgTrhLHg=
Type : exe
URI : https://oneclient.sfx.ms/Win/Installers/24.015.0121.0003/OneDriveSetup.exe
Decoding from base64 doesn't give us much to work with:
$base64String = "4rX5bXdtzujmFu6u12fKCcudIEoMMDNUDpgMIrgM79I="
$bytes = [System.Convert]::FromBase64String($base64String)
[System.Text.Encoding]::UTF8.GetString($bytes)
Returns this:
��mwm�����g� ˝ J
03T�
"�
��
Yeah, I added the ? because I don't know if it is base64. I couldn't get anything meaningful out of it either, but it sure looks like Base64.
I guess all I'm trying to do is point out that the sha256 attribute is incorrect. I don't know which end of the process creates the problem. (IMHO, it's probably Microsoft.)
I think it's base64 too, everything I plug it into says it's base64. I don't understand why we aren't getting anything meaningful out of it.
The value comes straight out of the update feed from MS. Should be the property be removed perhaps?
Unless we expect MS to care enough to fix the problem, I would say it should be removed. Better to not have a checksum property at all than to claim to have one but it is wrong/invalid.
I suppose there is a middle ground, but it requires some validation: Confirm that what the feed returns is hexadecimal and 64 characters long. If not, leave the sha256 property blank (or remove it) for that version.
This works to convert, tested with one of the actual values to confirm:
[System.BitConverter]::ToString([Convert]::FromBase64String($Hash)).Replace('-', '').ToLower()
thanks @DanGough
Thank GitHub Copilot 😂