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:
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.