{"id":4179,"date":"2022-06-10T08:40:54","date_gmt":"2022-06-10T15:40:54","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=4179"},"modified":"2022-06-10T08:41:12","modified_gmt":"2022-06-10T15:41:12","slug":"how-to-fix-unable-to-get-device-data-hash-for-intune-autopilot-enrollment","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=4179","title":{"rendered":"How to Fix &#8220;Unable to get device data hash&#8221; for Intune Autopilot enrollment"},"content":{"rendered":"\n<p>We bought a set of Surface 8 pros with 21h2 version and autopilot no longer works.<\/p>\n\n\n\n<p>it seems to be working with 2004 version.<\/p>\n\n\n\n<p>W<strong>e run this under PowerShell<\/strong><\/p>\n\n\n\n<p>Get-WindowsAutoPilotInfo.ps1<\/p>\n\n\n\n<p><strong>Then open Powershell instance, run<\/strong><\/p>\n\n\n\n<p>Set-ExecutionPolicy -ExecutionPolicy Unrestricted<\/p>\n\n\n\n<p>D:\\Get-WindowsAutoPilotInfo.ps1 -OutputFile D:\\surfaces.csv<\/p>\n\n\n\n<p>we get the error &#8220;unable to retrieve device hardware data (hash) from computer localhost.&#8221;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Solutions:<\/strong><\/p>\n\n\n\n<p>It looks like a global problem for Windows 10 registration via Autopilot after installing KB5013942 &#8211; 2022-05 Cumulative Update for Windows 10 Version 21H2. No problem with Windows 11. Uninstall this KB via command <strong>wusa.exe \/uninstall \/KB:5013942<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2022\/06\/WeChat-Image_20220609143550-1024x768.jpg\" alt=\"\" class=\"wp-image-4180\" srcset=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2022\/06\/WeChat-Image_20220609143550-1024x768.jpg 1024w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2022\/06\/WeChat-Image_20220609143550-300x225.jpg 300w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2022\/06\/WeChat-Image_20220609143550-768x576.jpg 768w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2022\/06\/WeChat-Image_20220609143550-1536x1152.jpg 1536w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2022\/06\/WeChat-Image_20220609143550.jpg 1706w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Ref: <a href=\"https:\/\/answers.microsoft.com\/en-us\/surface\/forum\/all\/unable-to-get-device-data-hash-for-intune\/d33aca05-1517-47ff-ae54-4271664c24f2\">unable to get device data hash for Intune Autopilot enrollment &#8211; Microsoft Community<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We bought a set of Surface 8 pros with 21h2 version and autopilot no longer works. it seems to be working with 2004 version. We run this under PowerShell Get-WindowsAutoPilotInfo.ps1 Then open Powershell instance, run Set-ExecutionPolicy -ExecutionPolicy Unrestricted D:\\Get-WindowsAutoPilotInfo.ps1 -OutputFile D:\\surfaces.csv we get the error &#8220;unable to retrieve device hardware data (hash) from computer localhost.&#8221; <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=4179\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1185,10,14],"tags":[],"class_list":["post-4179","post","type-post","status-publish","format-standard","hentry","category-autopilot-intune","category-microsoft","category-windows-7-8-10"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4179"}],"version-history":[{"count":2,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4179\/revisions"}],"predecessor-version":[{"id":4182,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4179\/revisions\/4182"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}