mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2024-11-21 14:17:11 +00:00
Compare commits
3 commits
07c4fcdc74
...
ddccc4025f
Author | SHA1 | Date | |
---|---|---|---|
ddccc4025f | |||
1567903b09 | |||
f6125eaa5b |
|
@ -1437,6 +1437,8 @@ for %%# in (
|
|||
if !errorlevel!==2 set permerror=Error_Found
|
||||
)
|
||||
|
||||
REM https://learn.microsoft.com/office/troubleshoot/activation/license-issue-when-start-office-application
|
||||
|
||||
if not defined permerror (
|
||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% && (
|
||||
set "pol=HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Policies"
|
||||
|
|
|
@ -1575,6 +1575,8 @@ for %%# in (
|
|||
if !errorlevel!==2 set permerror=Error_Found
|
||||
)
|
||||
|
||||
REM https://learn.microsoft.com/office/troubleshoot/activation/license-issue-when-start-office-application
|
||||
|
||||
if not defined permerror (
|
||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% && (
|
||||
set "pol=HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Policies"
|
||||
|
|
|
@ -1170,9 +1170,7 @@ reg delete HKLM\SOFTWARE\Microsoft\Office\15.0\ClickToRun\Configuration /v Share
|
|||
:: Clear device-based-licensing
|
||||
:: https://learn.microsoft.com/deployoffice/device-based-licensing
|
||||
|
||||
for %%# in (%_o16c2rIds%) do (
|
||||
reg delete %o16c2r_reg%\Configuration /v %%#.DeviceBasedLicensing /f %nul%
|
||||
)
|
||||
for /f %%# in ('reg query "%o16c2r_reg%\Configuration" /f *.DeviceBasedLicensing %nul6% ^| findstr REG_') do reg delete "%o16c2r_reg%\Configuration" /v %%# /f %nul%
|
||||
|
||||
:: Remove OEM registry key
|
||||
:: https://support.microsoft.com/office/office-repeatedly-prompts-you-to-activate-on-a-new-pc-a9a6b05f-f6ce-4d1f-8d49-eb5007b64ba1
|
||||
|
@ -1887,6 +1885,8 @@ for %%# in (
|
|||
if !errorlevel!==2 set permerror=Error_Found
|
||||
)
|
||||
|
||||
REM https://learn.microsoft.com/office/troubleshoot/activation/license-issue-when-start-office-application
|
||||
|
||||
if not defined permerror (
|
||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% && (
|
||||
set "pol=HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Policies"
|
||||
|
|
|
@ -1226,9 +1226,7 @@ reg delete HKLM\SOFTWARE\Microsoft\Office\15.0\ClickToRun\Configuration /v Share
|
|||
:: Clear device-based-licensing
|
||||
:: https://learn.microsoft.com/deployoffice/device-based-licensing
|
||||
|
||||
for %%# in (%_o16c2rIds%) do (
|
||||
reg delete %o16c2r_reg%\Configuration /v %%#.DeviceBasedLicensing /f %nul%
|
||||
)
|
||||
for /f %%# in ('reg query "%o16c2r_reg%\Configuration" /f *.DeviceBasedLicensing %nul6% ^| findstr REG_') do reg delete "%o16c2r_reg%\Configuration" /v %%# /f %nul%
|
||||
|
||||
:: Remove OEM registry key
|
||||
:: https://support.microsoft.com/office/office-repeatedly-prompts-you-to-activate-on-a-new-pc-a9a6b05f-f6ce-4d1f-8d49-eb5007b64ba1
|
||||
|
@ -2888,6 +2886,8 @@ for %%# in (
|
|||
if !errorlevel!==2 set permerror=Error_Found
|
||||
)
|
||||
|
||||
REM https://learn.microsoft.com/office/troubleshoot/activation/license-issue-when-start-office-application
|
||||
|
||||
if not defined permerror (
|
||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% && (
|
||||
set "pol=HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Policies"
|
||||
|
|
Loading…
Reference in a new issue