{"id":297,"date":"2023-03-24T20:11:26","date_gmt":"2023-03-24T20:11:26","guid":{"rendered":"https:\/\/www.digitalsaviour.co.uk\/blog\/?p=297"},"modified":"2025-11-19T09:23:11","modified_gmt":"2025-11-19T09:23:11","slug":"fixing-your-winre-partition-using-intune-mem","status":"publish","type":"post","link":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/","title":{"rendered":"Step-by-Step Recovery Partition Fix with Intune"},"content":{"rendered":"<body>\n<p class=\"wp-block-paragraph\">We may have been here before you and I. Your build has messed up. Partitions have been setup wrong. So not what? Your recovery partition is broken. This causes problems with encryption any much more.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So what do we do? The solutions out there are generally fix the build and rebuild the device. Wow. Intrusive right?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So\u2026 What other options are there? Rebuild it of course. Yes, you can do this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Firstly you need some http\/https source to store a few files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In particular :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>boot.sdi<\/li>\n\n\n\n<li>Winre.wim<\/li>\n\n\n\n<li>ReAgent.xml<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Wherever you get these from is your choice but these are what are needed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now you have them you can rebuild your recovery partition. Chances are the recovery partition is too small. This seems to be the main reason from what I\u2019ve seen. In Intune, you can solve this using remediation scripts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using a remediation script it will run the script over and over until it detects that everything is okay. You may want to add checks to make sure you don\u2019t end up with a tiny OS partition \ud83d\ude09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now I\u2019m not going to say this is the best solution out there. I\u2019m sure someone will be all like \u201coh but you could do this\u2026\u201d etc. but this DOES work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So\u2026 Firstly you need to have a Detection Script. This is easy enough. You can use <strong>reagentc <\/strong>and check for the results:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$status2 = reagentc \/info<br>Try {<br>if ($status2 -match 'Enabled'){<br>Write-Output \"Compliant\"<br>Exit 0<br>}<br>Write-Warning \"Not Compliant\"<br>Exit 1<br>}<br>Catch {<br>Write-Warning \"Not Compliant\"<br>Exit 1<br>}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">So this was easy right? Run a command and get the output. If it returns that WinRE is enabled then it\u2019s ok.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If it\u2019s not OK. Most people will tell you to rebuild, but wait a minute: we have Intune at our disposal. So let\u2019s actually fix it. Remediation scripts are the thing here. Detection will find the error and remediation will fix it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Start-Transcript -Path C:\\temp\\RemediateWinRE.log\n\nwrite-host \"Rebuilding WinRE\"\n\n\t# Remove recovery files from the boot drive\n\tcd C:\\Windows\\System32\\Recovery\n\tattrib -r -a -s -h *.*\n\tdel *.*\n\n    #Find the OS Partition\n    $osdisk = get-partition | where-object Type -eq \"Basic\"\n    #Record the partition number\n    $ospartition = $osdisk.PartitionNumber\n    #Find the current size\n    $size = (get-partition -disknumber 0 -partitionnumber $ospartition).Size\n    #Shrink by 200Mb\n    $size2 = $size - 209715200\n    #Shrink OS partition by 200Mb\n    resize-partition -DiskNumber 0 -PartitionNumber $ospartition -Size $size2\n    #Find recovery partition\n    $recoverydisk = get-partition | where-object Type -eq \"Recovery\"\n    #Record the partition number\n    $recoverypartition = $recoverydisk.PartitionNumber\n    #Delete the recovery partition\n    Remove-Partition -disknumber 0 -partitionnumber $recoverypartition -confirm:$false\n    #Create the Diskpart commands (powershell can't create a recovery partition)\n    $diskpath = \"C:\\OSInst\\BuildLogs\\diskpart.txt\"\n    if (-not(Test-Path -Path $diskpath -PathType Leaf)) {\n    new-item -Path C:\\OSInst\\BuildLogs\\diskpart.txt\n    }\n    else {\n    remove-item -Path $diskpath -Force\n    new-item -Path C:\\OSInst\\BuildLogs\\diskpart.txt\n\n    }\n    #Don't change indentation here!\n    $str = @'\nselect disk 0\ncreate partition primary\nformat quick fs=ntfs label=\"Recovery\"\nassign letter=\"X\"\nset id=\"de94bba4-06d1-4d40-a16a-bfd50179d6ac\"\ngpt attributes=0x8000000000000001\n'@\n    #Write the Diskpart commands to the file\n    $str | add-content C:\\OSInst\\buildlogs\\diskpart.txt\n    #Run the Diskpart commands\n    diskpart \/s C:\\OSInst\\buildlogs\\diskpart.txt\n\n    #Create Directories on new partition\n    new-item -path x: -Name 'Recovery' -type directory -Force\n    new-item -path x:\\Recovery -Name 'WindowsRE' -type directory -Force\n    #Copy the required files from the local disk\n    $url1 = ##yourlocation##\/boot.sdi\"\n    Invoke-WebRequest -Uri $url1 -OutFile \"x:\\Recovery\\WindowsRE\\boot.sdi\" -Method Get\n\n    $url3 = \"##yourlocation##\/Winre.wim\"\n    Invoke-WebRequest -Uri $url3 -OutFile \"x:\\Recovery\\WindowsRE\\Winre.wim\" -Method Get    \n\n    $url2 = \"##yourlocation##\/ReAgent.xml\"\n    Invoke-WebRequest -Uri $url2 -OutFile \"x:\\Recovery\\WindowsRE\\ReAgent.xml\" -Method Get\n\n    ##Copy to c:\\windows\\system32\\recovery as well\n    if (-not(Test-Path -Path \"C:\\windows\\system32\\recovery\\ReAgent.xml\" -PathType Leaf)) {\n        $url2 = \"##yourlocation#\/ReAgent.xml\"\n        Invoke-WebRequest -Uri $url2 -OutFile \"C:\\Windows\\System32\\Recovery\\ReAgent.xml\" -Method Get\n    }\n    else {\n        remove-item -Path \"C:\\Windows\\System32\\Recovery\\ReAgent.xml\" -Force\n        $url2 = \"##yourlocation##\/ReAgent.xml\"\n        Invoke-WebRequest -Uri $url2 -OutFile \"C:\\Windows\\System32\\Recovery\\ReAgent.xml\" -Method Get\n    }\n    if (-not(Test-Path -Path \"C:\\windows\\system32\\recovery\\boot.sdi\" -PathType Leaf)) {\n        copy-item \"x:\\Recovery\\WindowsRE\\boot.sdi\" -Destination \"C:\\Windows\\System32\\Recovery\" -Force\n    }\n    else {\n        remove-item -Path \"C:\\Windows\\System32\\Recovery\\boot.sdi\" -Force\n        copy-item \"x:\\Recovery\\WindowsRE\\boot.sdi\" -Destination \"C:\\Windows\\System32\\Recovery\" -Force\n    }\n    if (-not(Test-Path -Path \"C:\\windows\\system32\\recovery\\winre.wim\" -PathType Leaf)) {\n        copy-item \"x:\\Recovery\\WindowsRE\\winre.wim\" -Destination \"C:\\Windows\\System32\\Recovery\" -Force\n    }\n    else {\n        remove-item -Path \"C:\\Windows\\System32\\Recovery\\winre.wim\" -Force\n        copy-item \"x:\\Recovery\\WindowsRE\\winre.wim\" -Destination \"C:\\Windows\\System32\\Recovery\" -Force\n    }\n\n    #Set the file attributes on WinrE.wim and boot.sdi\n    reagentc \/setreimage \/path X:\\Recovery\\windowsre\n    #Enable WinRE\n    reagentc \/enable\n\n    write-host \"WinRE rebuild complete\"\n\nStop-Transcript<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">So what does this do? OK. This was based on a script that someone else gave me (Andrew T) but this one works after much trial and error and testing. Essentially it searches for and deletes the recovery partition. Shrinks the OS partition and then it will recreate it correctly and copy the files necessary for it to be a recovery partition and set some gpt attributes so Windows will know that is what it is. Once this has one it\u2019s stuff and a reboot (obviously) happens then the recovery partition will show as ok.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is not the most graceful of solutions but across multiple tenancies it works! It doesn\u2019t need a rebuild so if this is your problem then have a look at the above. It may help.<\/p>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>We may have been here before you and I. Your build has messed up. Partitions have been setup wrong. So not what? Your recovery partition is broken. This causes problems with encryption any much more. So what do we do? The solutions out there are generally fix the build and rebuild the device. Wow. Intrusive [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":27,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[24,30,1],"tags":[],"class_list":["post-297","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-intune","category-remediation","category-uncategorized"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Your Windows Recovrty partition needs fixing remotely? We show you how to use Intune to remotely remediate the issue by rebuilding the recovery partition.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Lee Burridge\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\ud83d\udc7dDigital Saviour - Tech. ancient civilizations, conspiracies, UAPs and more\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Step-by-Step Recovery Partition Fix with Intune - DS\" \/>\n\t\t<meta property=\"og:description\" content=\"Your Windows Recovrty partition needs fixing remotely? We show you how to use Intune to remotely remediate the issue by rebuilding the recovery partition.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1440\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-03-24T20:11:26+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-11-19T09:23:11+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@leeburridge\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Step-by-Step Recovery Partition Fix with Intune - DS\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Your Windows Recovrty partition needs fixing remotely? We show you how to use Intune to remotely remediate the issue by rebuilding the recovery partition.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#blogposting\",\"name\":\"Step-by-Step Recovery Partition Fix with Intune - DS\",\"headline\":\"Step-by-Step Recovery Partition Fix with Intune\",\"author\":{\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/author\\\/leeburridge\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.digitalsaviour.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/AdobeStock_183503207-scaled.jpeg?fit=2560%2C1440&ssl=1\",\"width\":2560,\"height\":1440},\"datePublished\":\"2023-03-24T20:11:26+00:00\",\"dateModified\":\"2025-11-19T09:23:11+00:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#webpage\"},\"articleSection\":\"Intune, Remediation, Uncategorized\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/category\\\/intune\\\/#listItem\",\"name\":\"Intune\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/category\\\/intune\\\/#listItem\",\"position\":2,\"name\":\"Intune\",\"item\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/category\\\/intune\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/category\\\/intune\\\/remediation\\\/#listItem\",\"name\":\"Remediation\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/category\\\/intune\\\/remediation\\\/#listItem\",\"position\":3,\"name\":\"Remediation\",\"item\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/category\\\/intune\\\/remediation\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#listItem\",\"name\":\"Step-by-Step Recovery Partition Fix with Intune\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/category\\\/intune\\\/#listItem\",\"name\":\"Intune\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#listItem\",\"position\":4,\"name\":\"Step-by-Step Recovery Partition Fix with Intune\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/category\\\/intune\\\/remediation\\\/#listItem\",\"name\":\"Remediation\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/#person\",\"name\":\"Lee Burridge\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#personImage\",\"url\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/wp-content\\\/plugins\\\/ultimate-member\\\/assets\\\/img\\\/default_avatar.jpg\",\"width\":96,\"height\":96,\"caption\":\"Lee Burridge\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/author\\\/leeburridge\\\/#author\",\"url\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/author\\\/leeburridge\\\/\",\"name\":\"Lee Burridge\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#authorImage\",\"url\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/wp-content\\\/plugins\\\/ultimate-member\\\/assets\\\/img\\\/default_avatar.jpg\",\"width\":96,\"height\":96,\"caption\":\"Lee Burridge\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#webpage\",\"url\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/\",\"name\":\"Step-by-Step Recovery Partition Fix with Intune - DS\",\"description\":\"Your Windows Recovrty partition needs fixing remotely? We show you how to use Intune to remotely remediate the issue by rebuilding the recovery partition.\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/author\\\/leeburridge\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/author\\\/leeburridge\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.digitalsaviour.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/AdobeStock_183503207-scaled.jpeg?fit=2560%2C1440&ssl=1\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#mainImage\",\"width\":2560,\"height\":1440},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/2023\\\/03\\\/24\\\/fixing-your-winre-partition-using-intune-mem\\\/#mainImage\"},\"datePublished\":\"2023-03-24T20:11:26+00:00\",\"dateModified\":\"2025-11-19T09:23:11+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/\",\"name\":\"\\ud83d\\udc7dDigital Saviour\",\"alternateName\":\"DS\",\"description\":\"Tech. ancient civilizations, conspiracies, UAPs and more\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitalsaviour.co.uk\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Step-by-Step Recovery Partition Fix with Intune - DS","description":"Your Windows Recovrty partition needs fixing remotely? We show you how to use Intune to remotely remediate the issue by rebuilding the recovery partition.","canonical_url":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#blogposting","name":"Step-by-Step Recovery Partition Fix with Intune - DS","headline":"Step-by-Step Recovery Partition Fix with Intune","author":{"@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/author\/leeburridge\/#author"},"publisher":{"@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=2560%2C1440&ssl=1","width":2560,"height":1440},"datePublished":"2023-03-24T20:11:26+00:00","dateModified":"2025-11-19T09:23:11+00:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#webpage"},"isPartOf":{"@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#webpage"},"articleSection":"Intune, Remediation, Uncategorized"},{"@type":"BreadcrumbList","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.digitalsaviour.co.uk\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.digitalsaviour.co.uk\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/#listItem","name":"Intune"}},{"@type":"ListItem","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/#listItem","position":2,"name":"Intune","item":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/remediation\/#listItem","name":"Remediation"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.digitalsaviour.co.uk\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/remediation\/#listItem","position":3,"name":"Remediation","item":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/remediation\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#listItem","name":"Step-by-Step Recovery Partition Fix with Intune"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/#listItem","name":"Intune"}},{"@type":"ListItem","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#listItem","position":4,"name":"Step-by-Step Recovery Partition Fix with Intune","previousItem":{"@type":"ListItem","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/remediation\/#listItem","name":"Remediation"}}]},{"@type":"Person","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/#person","name":"Lee Burridge","image":{"@type":"ImageObject","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#personImage","url":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-content\/plugins\/ultimate-member\/assets\/img\/default_avatar.jpg","width":96,"height":96,"caption":"Lee Burridge"}},{"@type":"Person","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/author\/leeburridge\/#author","url":"https:\/\/www.digitalsaviour.co.uk\/blog\/author\/leeburridge\/","name":"Lee Burridge","image":{"@type":"ImageObject","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#authorImage","url":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-content\/plugins\/ultimate-member\/assets\/img\/default_avatar.jpg","width":96,"height":96,"caption":"Lee Burridge"}},{"@type":"WebPage","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#webpage","url":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/","name":"Step-by-Step Recovery Partition Fix with Intune - DS","description":"Your Windows Recovrty partition needs fixing remotely? We show you how to use Intune to remotely remediate the issue by rebuilding the recovery partition.","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#breadcrumblist"},"author":{"@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/author\/leeburridge\/#author"},"creator":{"@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/author\/leeburridge\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=2560%2C1440&ssl=1","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#mainImage","width":2560,"height":1440},"primaryImageOfPage":{"@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/#mainImage"},"datePublished":"2023-03-24T20:11:26+00:00","dateModified":"2025-11-19T09:23:11+00:00"},{"@type":"WebSite","@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/#website","url":"https:\/\/www.digitalsaviour.co.uk\/blog\/","name":"\ud83d\udc7dDigital Saviour","alternateName":"DS","description":"Tech. ancient civilizations, conspiracies, UAPs and more","inLanguage":"en-GB","publisher":{"@id":"https:\/\/www.digitalsaviour.co.uk\/blog\/#person"}}]},"og:locale":"en_GB","og:site_name":"\ud83d\udc7dDigital Saviour - Tech. ancient civilizations, conspiracies, UAPs and more","og:type":"article","og:title":"Step-by-Step Recovery Partition Fix with Intune - DS","og:description":"Your Windows Recovrty partition needs fixing remotely? We show you how to use Intune to remotely remediate the issue by rebuilding the recovery partition.","og:url":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/","og:image":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg","og:image:secure_url":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg","og:image:width":2560,"og:image:height":1440,"article:published_time":"2023-03-24T20:11:26+00:00","article:modified_time":"2025-11-19T09:23:11+00:00","twitter:card":"summary_large_image","twitter:site":"@leeburridge","twitter:title":"Step-by-Step Recovery Partition Fix with Intune - DS","twitter:description":"Your Windows Recovrty partition needs fixing remotely? We show you how to use Intune to remotely remediate the issue by rebuilding the recovery partition.","twitter:image":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg"},"aioseo_meta_data":{"post_id":"297","title":"#post_title - DS","description":"Your Windows Recovrty partition needs fixing remotely? We show you how to use Intune to remotely remediate the issue by rebuilding the recovery partition.","keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2025-09-26 11:03:22","updated":"2025-11-19 09:31:56","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.digitalsaviour.co.uk\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/\" title=\"Intune\">Intune<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/remediation\/\" title=\"Remediation\">Remediation<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tStep-by-Step Recovery Partition Fix with Intune\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.digitalsaviour.co.uk\/blog"},{"label":"Intune","link":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/"},{"label":"Remediation","link":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/remediation\/"},{"label":"Step-by-Step Recovery Partition Fix with Intune","link":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/24\/fixing-your-winre-partition-using-intune-mem\/"}],"jetpack-related-posts":[{"id":264,"url":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/14\/the-mystery-of-secure-boot-intune-compliance\/","url_meta":{"origin":297,"position":0},"title":"The mystery of Secure Boot Intune compliance","author":"Lee Burridge","date":"March 14, 2023","format":false,"excerpt":"Intune compliance is a fantastic tool - if done right - but it has it's gotchas. Today I'm going to talk about a particular bugbear of mine which is Secure Boot compliance. When setting up a compliance policy you can set the standard policy up to check for Secure Boot\u2026","rel":"","context":"In &quot;Intune&quot;","block_context":{"text":"Intune","link":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":260,"url":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/03\/03\/cisco-anyconnect-client-with-umbrella-module\/","url_meta":{"origin":297,"position":1},"title":"Cisco AnyConnect Client with Umbrella Module","author":"Lee Burridge","date":"March 3, 2023","format":false,"excerpt":"Cisco Umbrella is a very popular system that is generally used for web filtering. It's very powerful but it has some issues. This article talks about problems with the Cisco Umbrella Roaming client when used with certain VPNs. In my case I came across this because the Fortinet VPN client\u2026","rel":"","context":"In &quot;Intune&quot;","block_context":{"text":"Intune","link":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2023\/03\/image.png?fit=387%2C208&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":353,"url":"https:\/\/www.digitalsaviour.co.uk\/blog\/2025\/01\/25\/update-7-zip-automatically\/","url_meta":{"origin":297,"position":2},"title":"Update 7-Zip Automatically","author":"Lee Burridge","date":"January 25, 2025","format":false,"excerpt":"The discussion highlights the lack of automated update options for 7-Zip installations across managed devices. The author shares a script to periodically check for and install the latest version using Intune, emphasizing the need for such automation. Suggestions for improvement and alternative methods are invited from readers.","rel":"","context":"In &quot;Powershell&quot;","block_context":{"text":"Powershell","link":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/development\/powershell\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/01\/7zipupgrade.png?fit=1200%2C844&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/01\/7zipupgrade.png?fit=1200%2C844&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/01\/7zipupgrade.png?fit=1200%2C844&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/01\/7zipupgrade.png?fit=1200%2C844&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/01\/7zipupgrade.png?fit=1200%2C844&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":328,"url":"https:\/\/www.digitalsaviour.co.uk\/blog\/2025\/01\/22\/how-windows-11-affects-on-screen-keyboard-for-tablets\/","url_meta":{"origin":297,"position":3},"title":"How Windows 11 Affects On-Screen Keyboard for Tablets","author":"Lee Burridge","date":"January 22, 2025","format":false,"excerpt":"In Windows 10 there was a tablet mode that would change the way your device worked so that it was usable as a tablet without a keyboard attached. In Windows 11 they have taken away this feature which causes some issues if you have a device that will not normally\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/01\/surface-go-tablet-mode.png?fit=1024%2C768&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/01\/surface-go-tablet-mode.png?fit=1024%2C768&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/01\/surface-go-tablet-mode.png?fit=1024%2C768&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/01\/surface-go-tablet-mode.png?fit=1024%2C768&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":254,"url":"https:\/\/www.digitalsaviour.co.uk\/blog\/2023\/02\/06\/force-sync-all-aad-joined-devices\/","url_meta":{"origin":297,"position":4},"title":"Force sync all AAD joined devices","author":"Lee Burridge","date":"February 6, 2023","format":false,"excerpt":"We have all been here. It's a common issue really and one that doesn't have a simple \"one-click\" solution within Endpoint Manager.","rel":"","context":"In &quot;Intune&quot;","block_context":{"text":"Intune","link":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/intune\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":431,"url":"https:\/\/www.digitalsaviour.co.uk\/blog\/2025\/02\/15\/uap-disclosure-jake-barbers-role-and-impact\/","url_meta":{"origin":297,"position":5},"title":"UAP Disclosure: Jake Barber&#8217;s Role and Impact","author":"Lee Burridge","date":"February 15, 2025","format":false,"excerpt":"Jake Barber is a US military veteran who has come forward as a whistleblower with regard to NHI crash retrievals of UAPs","rel":"","context":"In &quot;Disclosure&quot;","block_context":{"text":"Disclosure","link":"https:\/\/www.digitalsaviour.co.uk\/blog\/category\/uap\/disclosure\/"},"img":{"alt_text":"SkyWatcher - What Happened??","src":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/02\/jakeBarber.png?fit=1022%2C506&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/02\/jakeBarber.png?fit=1022%2C506&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/02\/jakeBarber.png?fit=1022%2C506&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2025\/02\/jakeBarber.png?fit=1022%2C506&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.digitalsaviour.co.uk\/blog\/wp-content\/uploads\/2022\/12\/AdobeStock_183503207-scaled.jpeg?fit=2560%2C1440&ssl=1","_links":{"self":[{"href":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-json\/wp\/v2\/posts\/297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=297"}],"version-history":[{"count":5,"href":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-json\/wp\/v2\/posts\/297\/revisions"}],"predecessor-version":[{"id":345,"href":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-json\/wp\/v2\/posts\/297\/revisions\/345"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-json\/wp\/v2\/media\/27"}],"wp:attachment":[{"href":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitalsaviour.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}