this post was submitted on 03 May 2024
181 points (94.6% liked)

Technology

59203 readers
3053 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
181
submitted 6 months ago* (last edited 5 months ago) by Pretzilla to c/technology
 

20240520 UPDATE: I just ran winupdate on an ancient win10 surface and after the same 643 error two more times, and running through all the available updates, it's now reporting I'm up to date. yippee.
I guess the latest update finally fixed it, at least on the Surface.

Anyone tried and succeeded? Not too awful plodding through the resizing? Tips to avoid destroying a partition and having to reinstall the os?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 6 months ago (2 children)

Anyone tried and succeeded?

Shiiit, I have a powershell script for this. Takes 90 seconds or less to fix it on systems with an SSD. Takes 2-3 minutes on HDD systems. I've done hundreds of times since the January 2024 update.

[–] frantic6423 5 points 6 months ago (1 children)
[–] [email protected] 8 points 6 months ago* (last edited 6 months ago)

You can literally copy / paste either of these commands into an elevated Powershell session. They create the directories needed, go fetch the script from Github, then execute it with the necessary arguments. I've run this on Windows 10, Windows 11, and all Windows Server versions from 2016 through 2022.

This is a “Confirmation” version. It will stop and prompt you before actually changing anything.

[System.IO.Directory]::CreateDirectory("C:\winrebackup"); [System.IO.Directory]::CreateDirectory("C:\tcmds"); cd c:\tcmds; Invoke-WebRequest -Uri https://raw.githubusercontent.com/Bash-OverRide/UseFulScripts/master/winre.ps1 -OutFile ./winre.ps1; dir; ./winre.ps1 -BackupFolder c:\winrebackup

This is a “No Confirmation” version. If the WinRE partition needs expanded it will just do it.

[System.IO.Directory]::CreateDirectory("C:\winrebackup"); [System.IO.Directory]::CreateDirectory("C:\tcmds"); cd c:\tcmds; Invoke-WebRequest -Uri https://raw.githubusercontent.com/Bash-OverRide/UseFulScripts/master/winre.ps1 -OutFile ./winre.ps1; dir; ./winre.ps1 -SkipConfirmation $true -BackupFolder c:\winrebackup

You may see a reboot warning if you have un-applied Windows Updates. In nearly all cases you can safely ignore the warning but the decision is up to the user.

If it fails with an error about insufficient space to resize the partition and your storage isn't full then it's likely that you have immovable files at the end of the primary partition. Turn off Hibernation and System Restore, which will remove those files, then reboot and try again. Remember to turn Hiberation and / or System Restore back on when done. I've only seen that happen a couple of times which is why it's not scripted in, just wasn't worth the effort.