IntuneManagement icon indicating copy to clipboard operation
IntuneManagement copied to clipboard

Downloading File not working

Open burak40 opened this issue 10 months ago • 8 comments

If I try to download application with file is not working.

Failed to invoke MS Graph with URL https://graph.microsoft.com/beta/deviceAppManagement/mobileApps/62197dd5-22ba-46a3-ad28-254f7a866e9b/microsoft.graph.winGetApp/contentVersions//files (Request ID: 9b118abc-3a3a-4120-a9fe-c9123e7e4f97). Status code: BadRequest. Response message: Resource not found for the segment 'contentVersions'. Exception: The remote server returned an error: (400) Bad Request.

burak40 avatar Apr 05 '24 10:04 burak40

Some extra information

image

burak40 avatar Apr 05 '24 11:04 burak40

Hello,

Is this during bulk export? If it is, then, it won't download the content unless the encryption file is available.

You have to save the encryption file during upload (in Settings) or use the stand-alone script to export it and save it in the download folder specified in Settings.

The app can get the encryption info since there's no API for it.

Cheers!

Micke-K avatar Apr 05 '24 12:04 Micke-K

Hi Mick,

It is not on bulk export, what I want to achieve is to export application .intunewin and import for an another customer.

How can I achieve this?

burak40 avatar Apr 12 '24 10:04 burak40

Hello,

I just noticed that the original error says winGetApp. Are you trying to download files for a business store app? That is not possible.

Cheers!

Micke-K avatar Apr 12 '24 10:04 Micke-K

Hi ,

I realized later this is not possible. Now I'm just trying to export .intunewin file and import for an another customer.

For example customer A has the following applications:

Google Chrome RMM Agent Dbforge Etc

These applications are uploaded in the portal as a intunewin file.

I want to export these intunewin files and import with exactly same configurerd parameters

Thanks in advance

burak40 avatar Apr 12 '24 10:04 burak40

Hello,

That is possible but it will require the encryption file. Without the encryption file, you can download it but it will be encrypted and useless.

You can only get the encryption file from the original .intunewin file and extract it with the Export-ExcryptionKeys.ps1 file in the Scripts folder.

Cheers!

Micke-K avatar Apr 12 '24 10:04 Micke-K

Hi,

I followed your suggestion and created some intunewin files locally. Then I ran export command to export encryption file. After running the script .json files are exported.

If i try to import it, its not working. What is the best steps to do it?

burak40 avatar Apr 12 '24 11:04 burak40

Hello,

Ah yes, there is a but for that. The download .intunewin file is just a zip file. You can rename to zip and extract it. The downloaded and decrypted.intunewin file cannot be used for upload. In requires the extract and repackage part. It is really annoying but it's the way Microsoft designed it.

Cheers!

Micke-K avatar Apr 12 '24 11:04 Micke-K