看起来您只需要重置 Microsoft 365 应用程序即可获得企业激活状态,请参阅此链接:https ://docs.microsoft.com/en-us/office/troubleshoot/activation/reset-office-365-proplus-activation -state#step-2-remove-cached-identities-in-hkcu-registry清除托管设备的 Office 凭据和激活状态
我在下面为您总结了所需的代码,但您必须下载 vbs 文件以获取第 1 个以上的链接:
taskkill /IM WinWord.exe /F
taskkill /IM Excel.exe /F
taskkill /IM Outlook.exe /F
taskkill /IM PowerPoint.exe /F
taskkill /IM Lync.exe /F
taskkill /IM MSACCESS.EXE /F
taskkill /IM Teams.exe /F
taskkill /IM MSPub.exe /F
taskkill /IM OneNote.exe /F
taskkill /IM OneNoteM.exe /F
taskkill /IM iexplore.exe /F
taskkill /IM OfficeClickToRun.exe /F
taskkill /IM OneDrive.exe /F
cscript 1-HKLM-O365-no-prompt.vbs
cscript OLicenseCleanup.vbs
del /F /Q %localappdata%\Microsoft\Office\16.0\Licensing\
REG DELETE HKCU\Software\Microsoft\Office\16.0\Common\Identity /f
REG DELETE HKCU\Software\Microsoft\Office\16.0\Registration /f
REG ADD HKCU\Software\Microsoft\Office\16.0\Common\Identity /v EnableADAL /t REG_DWORD /d 00000000 /f
REG ADD HKCU\Software\Microsoft\Office\16.0\Common\Identity /v DisableADALatopWAMOverride /t REG_DWORD /d 00000001 /f