diff options
| author | WindowsAddict | 2024-07-30 00:51:01 +0000 |
|---|---|---|
| committer | WindowsAddict | 2024-07-30 00:51:01 +0000 |
| commit | be45752a216f20ba1d9766f35d752d49f7d1aaff (patch) | |
| tree | 4b70f29637b4dd4ed96d5d16b7ec0a7b73bac28d /MAS/Separate-Files-Version/Change_Edition.cmd | |
| parent | a421b12ae46df0e64d2c3a50aa7986f6a0df16b8 (diff) | |
| download | Microsoft-Activation-Scripts-be45752a216f20ba1d9766f35d752d49f7d1aaff.zip | |
Add info about edition ID difference
Diffstat (limited to 'MAS/Separate-Files-Version/Change_Edition.cmd')
| -rw-r--r-- | MAS/Separate-Files-Version/Change_Edition.cmd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MAS/Separate-Files-Version/Change_Edition.cmd b/MAS/Separate-Files-Version/Change_Edition.cmd index 44ba387..e945d4e 100644 --- a/MAS/Separate-Files-Version/Change_Edition.cmd +++ b/MAS/Separate-Files-Version/Change_Edition.cmd @@ -363,6 +363,11 @@ call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot" goto dk_done
)
+for /f "skip=2 tokens=3" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul6%') do set "regedition=%%a"
+if /i not "%osedition%"=="%regedition%" (
+set "showeditionerror=call :dk_color %_Yellow% "Mismatch found [WMI-%osedition%] [Reg-%regedition%].""
+)
+
for /f "tokens=3 delims=: " %%a in ('DISM /English /Online /Get-CurrentEdition %nul6% ^| find /i "Current Edition :"') do set "dismedition=%%a"
if not defined dismedition set dismnotworking=1
@@ -439,6 +444,7 @@ set targetedition= %line%
echo:
call :dk_color %Gray% "You can change the Edition [%osedition%] [%fullbuild%] to one of the following."
+%showeditionerror%
if defined dismnotworking (
call :dk_color %_Yellow% "Note - DISM.exe is not working."
if /i "%osedition:~0,4%"=="Core" call :dk_color %_Yellow% " - You will see more edition options to choose once its changed to Pro."
@@ -536,6 +542,7 @@ if defined rebootreq goto dk_done cls
%line%
echo:
+%showeditionerror%
if defined dismnotworking call :dk_color %_Yellow% "DISM.exe is not working."
echo Changing the Current Edition [%osedition%] %fullbuild% to [%targetedition%]
echo:
@@ -605,6 +612,7 @@ call :ced_rebootflag if defined rebootreq goto dk_done
echo:
+%showeditionerror%
if defined dismnotworking call :dk_color %_Yellow% "Note - DISM.exe is not working."
echo Changing the Current Edition [%osedition%] %fullbuild% to [%targetedition%]
echo:
@@ -661,6 +669,7 @@ if defined rebootreq goto dk_done cls
echo:
+%showeditionerror%
if defined dismnotworking call :dk_color %_Yellow% "Note - DISM.exe is not working."
echo Changing the Current Edition [%osedition%] %fullbuild% to [%targetedition%]
echo:
|
