I have created a script which auto uploads your Windows 10 AutoPilot info to your tenant. I didn’t do the hard work, that is someone called Nickolaj Andersen. He wrote the script that you can download from the Powershell Galery. This is his original post:


The Script

It is a simple script, it is just a couple of lines. This is the syntax of the script:

Firstly, the script will check if the script that uploads the data is installed. If is not it will be installed. That is done by this part:

After that the script that has just been installed will be called upon by this line:


I will show you an example for the script. I created a simple Windows 10 Hyper V machine for the script to run on.

I copy the script to the machine itself but in a real life situation you should put it on an USB drive and run it from there. Is this is a machine will hasn’t been enrolled and is still in the OOBE state you should use the key combination: “Shift” + “F10”. This opens a command prompt, after that run the Powershell script from there.

In addition, all actions above require you to have an internet connection. 🙂

I have place the script in my temp folder:

Run CMD as Admin, otherwise you are not able to install scripts onto your system. Run the following command (Change the File parameter accordingly) :

NuGet needs to be installed, enter Y:

The script now installs a couple of modules to be able to connect to Azure AD. After that it prompts for the credentials to connect to Azure AD:

The data is being uploaded:

And now the Windows 10 device is uploaded in to your tenant:

Related Posts