- On a device that is:
- Currently undergoing Windows Setup and OOBE:
Kör tills du får sätta namn på datorn SBS-%serienummer% låt den starta om sen nedan.
- Currently undergoing Windows Setup and OOBE:
- At the sign-in prompt after OOBE starts, open a command prompt window with the keystroke Shift+F10.
- In the command prompt window that opens, start PowerShell by running the following command:
Windows Command PromptCopy
powershell.exe
sen:
Lägg nedanstående I en textfil på en USB sticka sen kan man kopiera in texten i powershell o köra.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
Install-Script -Name Get-WindowsAutopilotInfo -Force
Get-WindowsAutopilotInfo -Online
- Already undergone Windows Setup and OOBE:
- Sign into the device.
- Open an elevated Windows PowerShell prompt.
- At the PS PowerShell command prompt, run the following PowerShell commands:
PowerShellCopy
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
Install-Script -Name Get-WindowsAutopilotInfo -Force
Get-WindowsAutopilotInfo -Online
If prompted to do so, agree to install NuGet from the PSGallery.
- When the last command of Get-WindowsAutopilotInfo -Online runs, a Microsoft Entra ID sign-on prompt is displayed. Sign in with an account that is at least an Intune Administrator.
Note
On first run, the Get-WindowsAutopilotInfo.ps1 script prompts to approve the required app registration permissions.
- After the sign-in is successful, the device hash uploads automatically.
- Verify that the hardware hash uploaded successfully and the device is showing as a registered Windows Autopilot device using the instructions in the section Verify the hardware hash uploaded.
- For devices undergoing Windows Setup and OOBE, restart the device. The device should pick up the Windows Autopilot profile and OOBE should run through the Windows Autopilot provisioning process.
Verify the hardware hash uploaded
To confirm the hardware hash for the device was uploaded into Intune and that the device shows as a Windows Autopilot device:
- Sign into the Microsoft Intune admin center.
- In the Home screen, select Devices in the left hand pane.
- In the Devices | Overview screen, under By platform, select Windows.
- In the Windows | Windows devices screen, under Device onboarding, select Enrollment.
- In the Windows | Windows enrollment screen, under Windows Autopilot, select Devices.
- In the Windows Autopilot devices screen, select Sync in the toolbar.
- Wait for the sync to finish. The sync might take several minutes.
- After the sync completes and the device appears in the device list in the Windows Autopilot devices screen in Intune, the device is ready for a Windows Autopilot deployment as long as a Windows Autopilot profile is assigned to the device.