question

alfiosantoro avatar image
0 Votes"
alfiosantoro asked JessieS-3608 commented

Autopilot: collect hardware hash from existing devices using SCCM Task Sequence

Hi everyone,

I need to collect hardware hash from new PC using a USB task sequence media.

My Task Sequence performs the following operations:
1 - Connect to Network Folder
2 - Run Powershell script: (Get-WindowsAutoPilotInfo.ps1 )
3 - Restart the Pc

The task sequence ends successfully and I find the generated .csv file.
The problem is that this file is empty, without HW ID that I would need to put the PC in autopilot.
69102-image.png

69115-image.png

69103-image.png

I modified the script with these parameters:
69070-image.png

What could be causing this problem?


mem-cm-generalmem-autopilot
image.png (2.7 KiB)
image.png (24.3 KiB)
image.png (29.6 KiB)
image.png (17.8 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Did you ever get this to work?

0 Votes 0 ·
RahulJindal-2267 avatar image
0 Votes"
RahulJindal-2267 answered

Are the devices already enrolled in Intune?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

alfiosantoro avatar image
0 Votes"
alfiosantoro answered

No, the pc is neither in Intune nor in SCCM.

I need a way to get the hardware ID to put the pc into Autopilot via a USB stick before loading Windows.
And I had thought about creating a Task Sequence in SCCM.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

NickHogarth-MVP avatar image
0 Votes"
NickHogarth-MVP answered

Is your purpose to get these devices into Autopilot? If so, have you looked at using Autopilot for existing devices and using the Autopilot json file? That way you can use Autopilot but the devices don't need to be registered. Once the devices are in Intune after Autopilot, you can then target an Autopilot profile to the devices with the convert devices to Autopilot option enabled. Then it will capture the hardware hash.

Windows Autopilot Deployment for existing devices https://docs.microsoft.com/en-us/mem/autopilot/existing-devices

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

FionaYan-MSFT avatar image
0 Votes"
FionaYan-MSFT answered FionaYan-MSFT commented

@alfiosantoro

Thank you for posting in Microsoft Q&A forum.

No, the pc is neither in Intune nor in SCCM. And I had thought about creating a Task Sequence in SCCM.

If we want to use the SCCM environment. These computers may need to be managed by SCCM firstly. And then, we could use the power shell script in task sequence to push the process. The hardware hash will be written to the specified CSV file, which you could then upload to Intune, either manually or using the Windows Autopilot Intune module's Import-Auto pilot CSV file.
For more details, please refer to this excellent blog:
https://oofhours.com/2020/09/28/export-all-your-hardware-hashes-from-configmgr/

Have a good day!


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@alfiosantoro

May we know the current status of the question? If there is any other assistance we can provide, please feel free to let us know, we will do our best to help you.

0 Votes 0 ·