Browse Source

Improve device-based-licensing cleaning

pull/542/head
WindowsAddict 5 months ago
parent
commit
1567903b09
  1. 6
      MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd
  2. 6
      MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd

6
MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd

@ -1170,8 +1170,10 @@ reg delete HKLM\SOFTWARE\Microsoft\Office\15.0\ClickToRun\Configuration /v Share
:: Clear device-based-licensing :: Clear device-based-licensing
:: https://learn.microsoft.com/deployoffice/device-based-licensing :: https://learn.microsoft.com/deployoffice/device-based-licensing
for %%# in (%_o16c2rIds%) do ( if defined _o16c2rIds (
reg delete %o16c2r_reg%\Configuration /v %%#.DeviceBasedLicensing /f %nul% for /f "tokens=1 delims= " %%A in ('reg query "%o16c2r_reg%\Configuration" %nul6%') do (
echo %%A | find /i ".DeviceBasedLicensing" %nul% && reg delete "%o16c2r_reg%\Configuration" /v "%%A" /f %nul%
)
) )
:: Remove OEM registry key :: Remove OEM registry key

6
MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd

@ -1226,8 +1226,10 @@ reg delete HKLM\SOFTWARE\Microsoft\Office\15.0\ClickToRun\Configuration /v Share
:: Clear device-based-licensing :: Clear device-based-licensing
:: https://learn.microsoft.com/deployoffice/device-based-licensing :: https://learn.microsoft.com/deployoffice/device-based-licensing
for %%# in (%_o16c2rIds%) do ( if defined _o16c2rIds (
reg delete %o16c2r_reg%\Configuration /v %%#.DeviceBasedLicensing /f %nul% for /f "tokens=1 delims= " %%A in ('reg query "%o16c2r_reg%\Configuration" %nul6%') do (
echo %%A | find /i ".DeviceBasedLicensing" %nul% && reg delete "%o16c2r_reg%\Configuration" /v "%%A" /f %nul%
)
) )
:: Remove OEM registry key :: Remove OEM registry key

Loading…
Cancel
Save