Deploy files to Windows devicesSolved

Participant
Discussion
2 weeks ago

Hey everyone, I’m managing a fleet of Windows devices through Hexnode, and my organization provides these devices to employees for work. I need a way to push a PDF file to all the devices. What’s the best way to do this?

Replies (6)

Marked SolutionPending Review
Participant
2 weeks ago
Marked SolutionPending Review

Have you considered deploying it as a custom app?

Marked SolutionPending Review
Participant
1 week ago
Marked SolutionPending Review

Actually, I don’t think that’s possible, since Hexnode only supports enterprise apps in MSI, MSIX, or EXE formats. Pushing a PDF file through this method may not be feasible.

Marked SolutionPending Review
Hexnode Expert
1 week ago
Marked SolutionPending Review

Hi @schyler-scott, welcome to Hexnode Connect!

To deploy a PDF file to the devices via Hexnode, you can use Hexnode’s Execute Custom Script action.

The following script can be used to deploy the PDF file to Windows devices,

Specify the URL of the PDF you want to deploy in the $pdfUrl variable and the destination path where you want the PDF to be saved in the $localPath variable. If a PDF is stored on a local system, it must be uploaded to a cloud storage service or a web server to generate its URL. For PDFs already available online, use the direct download URL from the website.

Follow these steps to execute the custom script,

  1. On your Hexnode UEM, navigate to Manage > Devices.
  2. Click on Actions > Execute Custom Script.
  3. Upload the script file by clicking on the Choose File option.
  4. Once the script is executed, check the Action History. If the PDF was successfully deployed, a success message will be displayed.

Let us know if you have any doubts. You can check out our documentation on executing custom scripts on Windows devices for more information.

Regards,
Sienna Carter
Hexnode UEM

Marked SolutionPending Review
Participant
1 week ago
Marked SolutionPending Review

Can files uploaded to Google Drive be pushed to device as well?

Marked SolutionPending Review
Hexnode Expert
1 week ago
Marked SolutionPending Review

Hi @nevaeh, welcome to Hexnode Connect!

To deploy a PDF file from Google Drive using Hexnode’s Execute Custom Script action,

  1. Select the PDF file from Google Drive, then click on Share and set access to Anyone with the link.
  2. Next, extract the File ID from the shareable link.

    For example, if the shareable link is:
    https://drive.google.com/file/d/1AbCDefGhIjKlmnopQrS_tUvWxY/view?usp=sharing

    The File ID is the portion between /d/ and /view, which in this case is 1AbCDefGhIjKlmnopQrS_tUvWxY.

  3. To generate a direct download link, use the following format:
    https://drive.google.com/uc?export=download&id=FILE_ID
    Replace FILE_ID with the extracted File ID to get the final download link.
  4. Then, use this link as the value for the $pdfUrl variable in the script mentioned earlier.

This will ensure the PDF file is downloaded and deployed to the devices successfully.

Regards,
Sienna Carter
Hexnode UEM

Marked SolutionPending Review
Participant
1 week ago
Marked SolutionPending Review

Thanks guys, appreciate the help!

Save