Use Atera Scripts to add computer to Intune Autopilot remotely

jtucker
jtucker Member Posts: 1
edited December 2023 in Scripts

I'm attempting to add about 30 computers on my network to our intune autopilot and I need to collect the serial number and hash for each computer and submit it to intune. I'll then wipe the computer and have an enrolled intune device.

I'm running into an issue with getting my script to run https://gist.github.com/jasontucker/077793497e4e26175f39428a20d528ac where it fails to "Install-Script get-windowsautopilotinfo -Confirm:$false -Force:$true" line 10 in the link above. I'm using all the tricks to get it to install in hopes of bypassing the y/n question it asks but for whatever reason it won't install properly.

Anyone else done this without having to go to each PC and use a USB to run said script?

Comments

  • Sarah_from_Atera
    Sarah_from_Atera Member Posts: 93 ✭✭✭

    Hi @jtucker , Sarah from Atera here.

    I have opened a ticket for you with our support team, they should be able to assist!

  • mjones
    mjones Member Posts: 183 ✭✭✭✭

    Pretty sure you have to do this before finishing the setup of the machines.
    Otherwise, you are looking at a Hybrid join scenario, but I could be wrong.