Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading File not working #210

Open
burak40 opened this issue Apr 5, 2024 · 8 comments
Open

Downloading File not working #210

burak40 opened this issue Apr 5, 2024 · 8 comments

Comments

@burak40
Copy link

burak40 commented Apr 5, 2024

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
Copy link
Author

burak40 commented Apr 5, 2024

Some extra information

image

@Micke-K
Copy link
Owner

Micke-K commented Apr 5, 2024

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!

@burak40
Copy link
Author

burak40 commented Apr 12, 2024

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?

@Micke-K
Copy link
Owner

Micke-K commented Apr 12, 2024

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!

@burak40
Copy link
Author

burak40 commented Apr 12, 2024

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

@Micke-K
Copy link
Owner

Micke-K commented Apr 12, 2024

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!

@burak40
Copy link
Author

burak40 commented Apr 12, 2024

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?

@Micke-K
Copy link
Owner

Micke-K commented Apr 12, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants