Skip to content

Win32 application add bug with PowerShell 7.4.5 #279

@KG-droid

Description

@KG-droid

Hi all,
I think I may have found a bug, when using the Win32_Application_Add.ps1 when uploading the file content for a new win32 app in intune. Specially after alot of testing the issue appears to be related to the Invoke-WebRequest upon uploading the chunks to Azure. Whenever I try to commit the encryption info after the file content upload, I just get commitFileFailed with no further details. But yet this same script works perfectly fine on powershell 7.3.12. Even more weird is that I can upload all the chunks, commit the block list and then download what I've just committed from Azure, and it downloads a working intunewin file that I can decrypt, but yet intune still isn't happy with it apparently. Another thing I've tested too is using the InFile switch with Invoke-RestMethod to upload the file directly rather than in chunks and that works fine, so it appears there is something weird going on when uploading via the body switch with chunks.

Is anyone else experiencing this?

Cheers
Keir

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions