massgravel / Microsoft-Activation-Scripts

A Windows and Office activator using HWID / Ohook / KMS38 / Online KMS activation methods, with a focus on open-source code and fewer antivirus detections.
https://massgrave.dev
GNU General Public License v3.0
86.01k stars 8.39k forks source link

"Pending reboot flags found" while changing the edition #411

Closed YawanYadav closed 3 months ago

YawanYadav commented 3 months ago

Hi, I am trying to change my windows edition from Home to Professional but when I press 2 and press Enter then it is showing

"Errors"

Pending reboot flags found

Please restrart and try again

Screenshot 2024-04-01 092826

I ran the command irm https://massgrave.dev/get | iex in powershell with administrator but showing the same error again and again. Restrarted the computer multiple times.

I even looked for previous issues in case if anyone had this problem before but found none.

WindowsAddict commented 3 months ago

@YawanYadav

Open powershell as admin and enter

Test-Path -Path "$env:windir\WinSxS\pending.xml" Get-ChildItem "HKLM:\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending" Get-Item "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired"

share screenshot

YawanYadav commented 3 months ago

Here it is

Screenshot 2024-04-01 093341

And One more thing, I disabled Windows Auto Update

WindowsAddict commented 3 months ago

C:\Windows\WinSxS\pending.xml

Your system has this file, and its causing the error. System automatically removes this file after system restart. Try to run windows update and install all the updates and restart system a couple of times, it should fix it. If not, please share that file here.

YawanYadav commented 3 months ago

Just a minute, I am installing update and I will let you know If it passes or fails.

Problem is that it is showing

2024-01 Security Update for Windows 10 Version 22H2 for x64-based Systems (KB5034441) but installing stuck for few seconds and shows

There were some problems installing updates, but we'll try again later. If you keep seeing this and want to search the web or contact support for information, this may help: (0x80070643)

I am trying to resolve it using some tweaks

WindowsAddict commented 3 months ago

Just a minute, I am installing update and I will let you know If it passes or fails.

Problem is that it is showing

2024-01 Security Update for Windows 10 Version 22H2 for x64-based Systems (KB5034441) but installing stuck for few seconds and shows

There were some problems installing updates, but we'll try again later. If you keep seeing this and want to search the web or contact support for information, this may help: (0x80070643)

I am trying to resolve it using some tweaks

windows_update_refresh.zip

Try this script.

YawanYadav commented 3 months ago

It is working. Thank you very much. But I need to ask you something before I change the edition, Will it permanently change the edition to Home to Professional and keep the professional edition even after a reset? Will it also unlock Encryption(Bitlocker)? Are there any downsides in changing edition using your wonderful scripts?

WindowsAddict commented 3 months ago

@YawanYadav Reset won't change it back to Home edition, however if you clean install windows using consumer iso, it will install home because installer picks the motherboard license and auto chooses the edition based on that. To get the list of edition while installing, you can get business iso from here https://massgrave.dev/genuine-installation-media.html or you can use ei,cfg file trick.

YawanYadav commented 3 months ago

Understood, But Will it have all the professional edition features?

WindowsAddict commented 3 months ago

Understood, But Will it have all the professional edition features?

Yes

YawanYadav commented 3 months ago

Thanks again for the all the help and these wonderful scripts