David Yoder
2019-02-03
A couple of days ago @Matthew asked about a script to perform a silent and unattended Windows 10 feature update (see the post here). I don't have a good way to automate the whole thing, but @Nick did provide a good solution for simply mounting the installation ISO, sharing it on the network, then running the installation command on a remote endpoint that can see the share.
To help with this, I've created a script that will mount an ISO file and share it on the network. The ISO is mounted in read-only mode, and grants 'Everyone' read-only access to the network share.
You can specify either a local path to an ISO file, or a URL and the script will fetch it for you. Once the ISO is mounted and shared, the script will return the share path to the Ninja Activity Stream so you can copy/paste it into another script/action to upgrade multiple endpoints.
Lastly, I also found out that this URL had direct links to downloadable Windows 10 ISO files (non-Enterprise edition) hosted by Microsoft: https://www.microsoft.com/en-us/software-download/windows10
The trick is that you must visit the site from a non-Windows device, and any links it gives you are only valid for 24hrs. But still, it keeps you from having to host and transfer a 6+GB file.
Anyway, hope this helps someone!