This process is only for devices that are not currently enrolled in AutoPilot.   

 

  1. Make sure all of your data is in OneDrive and synced, backed up, etc. 
  2. Open PowerShell as Administrator 
  3. Set-ExecutionPolicy Unrestricted 
  4. Type “Y” and press Enter (for policy change) 
  5. Install-Script -name Get-WindowsAutopilotInfo 
  6. Type "Y" and the press Enter (for script running) 
  7. Type "Y" and then press Enter (for NuGet) 
  8. Type "Y" and then press Enter (for Untrusted repo) 
  9. Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned 
  10. Type "Y" and the press Enter (for Execution Policy Change) 
  11. Get-WindowsAutopilotInfo -Online 
  12. Sign-in with Intune admin account and wait for import process to complete 
  13. Reset your device 
    1. If you are using Windows 11, use the reset my PC function 
    2. If you are using Windows 10, use a USB drive to install windows 11 as a clean installation 

 

Your device should now restart in the OOBE.  If your device doesn't enroll in Intune (IE, you get asked for a computer name) please let Justin or Frank know. 

 

 

If it's a new computer that didn't get pre-enrolled, here's the directions you'll need for getting to PowerShell and resetting without having to go through the full setup first: 

 

  1. Once you're at the initial setup screen, press Shift+F10 to open a command prompt. 
  2. Enter this to run Powershell as an administrator: 
  3. Powershell Start-Process powershell –Verb runAs 
  4. Run the steps 3-12 in the section above. 
  5. When you're done with step 12, you can initiate the reset from powershell too: 
  6. systemreset -factoryreset 


    Full script for copy paste into PS:

    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

     Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned

     Install-Script -Name Get-WindowsAutopilotInfo -Force

     Get-WindowsAutopilotInfo -Online