Already a NinjaOne customer? Log in to view more guides and the latest updates.

Custom Script: Upgrade Windows 10 build

 

NinjaDojo-logo-darkblue.jpg

 

This script (listed in "attachments") will attempt to upgrade a windows 10 machine to a specific build. You will need to add this script to your Script Library and then specify one of the following parameters upon running it (which can be done using a Scheduled Script, using a Search tab):

Hosted:
-whereToDownload "http://www.myurl.com/windows10.iso"

OR

Local:
-fileLocation "c:mypathwindows10.iso" 

In order to create the required ISO image you'll need the Microsoft media creation tool. You can download it here:

https://www.microsoft.com/en-us/software-download/windows10

Click "Download Tool Now", you can then run the tool and create an ISO image for a specific edition/language version of windows.

Once the ISO is created, upload it to a hosted site and deploy.

Some caveats:

  • This script has been tested in a wide variety of environments.  However, due to the myriad environmental factors involved, this cannot be guaranteed to work in every case, on every box, and should be considered a best effort approach to upgrading boxes.

  • As with any script to be deployed, we recommend testing on a limited number of machines and/or test environment.

  • In the activity feed, once the script executes, the activity will show "success".  This indicates that the script has been deployed correctly - not that the agent has updated fully.  

  • Bear in mind that, since these upgrades are full reinstalls of the OS, you will see the NinjaRMMagent go offline.  In our testing, this offline condition lasted anywhere between 10-20 minutes while the box installed the OS.  After this time, you should see the device online in Ninja

  • Troubleshooting steps in case of upgrade failures:  
    https://docs.microsoft.com/en-us/windows/deployment/upgrade/resolve-windows-10-upgrade-errors

 

FAQ

Next Steps