msoffice removal tool
1.0.0
__ _ _ _ ___ _
/ _(_)_ __ __ _| | ___| |_ ___ _ __ / ___ _ ___| |_ ___ _ __ _ _
| | '_ / _` | |/ _ __/ _ | '_ / _/ _` |/ __| __/ _ | '__| | | |
_ | | | | (_| | | __/ || (_) | | | | / / | (_| | (__| || (_) | | | |_| |
__/_|_| |_|__, |_|___|_____/|_| |_| / __,_|___|_____/|_| __, |
|___/ |___/
Microsoft Office Removal Tool
by Aaron Viehl (Singleton Factory GmbH)
singleton-factory.de
该脚本从Microsoft下载了当前的Office卸载器,并试图删除该计算机上的所有办公室安装。
如果您希望它尝试安装最新的Office365构建。
您可以在两种卸载方法之间选择:
默认方法将使用Microsoft支持和恢复助手(SARA)进行卸载。
通过使用-UseSetupRemoval
将使用Office365设置方法。
范围 | 用法 |
---|---|
-installoffice365 | 脚本将尝试在删除后安装最新的Office365构建 |
-suppressreboot | 完成脚本后不会执行重新启动 |
- 估算 | 将使用官方的Office365设置代替Sara |
-runagain | 会跳过舞台机制 - 整个脚本将再次运行 |
-力量 | 非相互作用 - 无需用户互动 |
- 秒storeboot [int] | 几秒钟,直到计算机将重新启动 |
.msoffice-removal-tool.ps1 -InstallOffice365 -SuppressReboot -Force
为了确保该程序只能执行必要的部分,阶段机制是内置的。在每个HKLM:SoftwareOEMSingleton-Factory-GmbHM365InstallCurrentStage
之后
覆盖所有阶段并重新启动整个脚本使用-RunAgain
。
您可以在不明确下载的情况下使用此脚本:
iwr https: // raw.githubusercontent.com / Admonstrator / msoffice - removal - tool / main / msoffice - removal - tool.ps1 - OutFile msoffice - removal - tool.ps1; powershell - ExecutionPolicy Bypass .msoffice - removal - tool.ps1