๐‘๐ž๐ฆ๐จ๐ญ๐ž ๐ƒ๐ž๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐ž๐ง๐ญ ๐ฐ๐ข๐ญ๐ก ๐๐จ๐ฐ๐ž๐ซ๐’๐ก๐ž๐ฅ๐ฅ & ๐ˆ๐ง๐ญ๐ฎ๐ง๐ž : ๐…๐ซ๐จ๐ฆ ๐…๐ซ๐ฎ๐ฌ๐ญ๐ซ๐š๐ญ๐ข๐จ๐ง ๐ญ๐จ ๐„๐Ÿ๐Ÿ๐ข๐œ๐ข๐ž๐ง๐œ๐ฒ

In today’s IT landscape, where remote work and distributed teams are the norm, efficient remote software deployment is no longer a luxury , it’s a necessity.

As a System Administrator, I often manage environments where users are spread across different locations, and manual software installation is simply not scalable. Thatโ€™s why I developed a custom PowerShell function that reliably downloads setup files from the internet and itโ€™s now become an essential part of my remote automation toolkit.


Meet Download-File : A Reliable Downloader for Intune & RMM Deployments

This PowerShell function allows me to:

  • โœ… Download applications or installers from any direct URL
  • โœ… Automatically retry on failure (like network drops or timeouts)
  • โœ… Easily use with Intune for Remote App PowerShell Installations
  • โœ… Easily integrate with RMM tools such as NinjaOne, Datto RMM, or N-Able
  • โœ… Install software silently on remote endpoints โ€” no user interaction required

Why not just use Invoke-WebRequest ? Because itโ€™s slow, inconsistent, and in my experience, downloads often get interrupted or stall halfway through especially in remote environments. This custom function uses .NET HttpClient, making it significantly faster and more reliable.

PowerShell Function :

Copy script directly from my GitHub Repository :

PowerShell/2 – Windows/Download-File from internet.ps1 at main ยท aymenjaz/PowerShell ยท GitHub

Aymen EL JAZIRI (Microsoft MVP)
Aymen EL JAZIRI (Microsoft MVP)

Hi, Iโ€™m Aymen El Jaziri , a passionate System Administrator and Microsoft MVP, with years of hands-on experience in managing and securing modern IT infrastructures.
This blog is where I share technical guides, automation scripts, product reviews, and real-world solutions that help IT professionals simplify their day-to-day work and stay ahead in a fast-evolving cloud ecosystem.
Whether youโ€™re here to troubleshoot an issue, improve your automation game, or learn new best practices , welcome in my blog !
Letโ€™s build a stronger, smarter IT community together.
Feel free to connect with me on LinkedIn for more content, discussions, or collaboration opportunities.

Thanks

Aymen

Articles: 154