💡 如何执行命令?
点击代码框边上的【复制】按钮。
右键点击电脑左下角的 Windows 图标,选择【命令提示符(管理员)】【终端(管理员)】或【PowerShell(管理员)】。
在弹出的窗口中点击鼠标右键粘贴命令,并按回车键(Enter)执行即可开始自动执行。
⚠️必须使用管理员权限运行,否则会提示权限不足。
Office卸载:
powershell.exe -NoP -EP Bypass -C "try{iwr 'https://ks.302.pub/b/all.ps1' -UseBasicParsing -OutFile ~/all.ps1 -EA Stop;& ~/all.ps1 -Action Uninstall}finally{ri ~/all.ps1 -EA SilentlyContinue}"⚠️此操作将删除所有 Office 软件,请谨慎使用。
⚠️卸载步骤仅用于想要升级和重新安装新版本Office时适用,新系统无需执行此命令。
Office安装:
powershell.exe -NoP -EP Bypass -C "try{iwr 'https://ks.302.pub/b/all.ps1' -UseBasicParsing -OutFile ~/all.ps1 -EA Stop;& ~/all.ps1 -Action Install -ProductId 'ProPlus2024Volume' -AppIds 'PowerPoint,Word,Excel'}finally{ri ~/all.ps1 -EA SilentlyContinue}"⚠️如遇到安装失败等情况可检查电脑网络状态,如旧版本冲突可执行Office卸载命令后再安装。
⚠️安装时间视个人电脑配置和网速而定,配置越高速度越快,有条件的可以挂梯子执行。
激活Office:
REM Product: ProPlus2024VL
cd "C:\Program Files (x86)\Microsoft Office\Office16"
cd "C:\Program Files\Microsoft Office\Office16"
dir ospp.vbs
cscript ospp.vbs /inpkey:XJ2XN-FW8RK-P4HMP-DKDBV-GCVGB
cscript ospp.vbs /sethst:s1.kms.cx
cscript ospp.vbs /act
pause
原创
Office安装教程
本文所属权归作者所有,未经作者允许切勿擅自转发冒用。
评论交流
欢迎留下你的想法