logo
search
Uninstall & Reinstall Issues

How to Silently Uninstall Preinstalled Microsoft Office Using PowerShell

Maira MehtabMaira Mehtab Sep 21, 2026 869 views

Question details

The user is attempting to automatically uninstall preinstalled Microsoft Office using a PowerShell script, but manual confirmation prompts continue to appear.

Product
Microsoft Office
Device & OS
not provided
Scenario
Automating the removal of preinstalled Office applications across systems without requiring user interaction.
Observed behavior
The PowerShell script fails to suppress manual confirmation prompts and windows, even when common silent uninstallation switches are applied.
Before you start

Ensure you are running PowerShell as an Administrator and have the exact uninstall string for the specific version of Office preinstalled on your machine.

Solution 1Recommended

Consult Microsoft Q&A Specialists for Deployment Scripts

Since scripted Office deployment and removal involves complex handling of uninstall strings and parameters, posting to the official Microsoft Q&A community is the most effective way to resolve persistent manual prompts.

Preinstalled versions of Microsoft Office (often UWP or Store apps) can have unique uninstallation parameters compared to standard desktop installations. If standard silent switches like /quiet or /qn are failing in your PowerShell script, the Office management team can help debug the exact command.

1
Gather your script details

Copy your current PowerShell script and locate the exact uninstall string you are attempting to execute.

2
Navigate to Microsoft Q&A

Go to the official Microsoft Q&A community website and sign in with your Microsoft account.

3
Create a new post

Draft a new question detailing your issue. Be sure to paste your PowerShell script and describe the exact prompts you are seeing.

4
Apply appropriate tags

Tag your question with 'Office Development' or 'Office Management' so that specialized engineers and community experts can review your deployment and removal parameters.

Important: Always redact any sensitive organizational information or product keys from your PowerShell scripts before posting them publicly on forums.
Free Microsoft Office alternative

Switch to WPS Office for a Lightweight and Hassle-Free Experience

If you are struggling with bulky preinstalled Microsoft Office apps and complex uninstallation scripts, consider switching to WPS Office. It provides a lightweight, all-in-one suite that is incredibly easy to manage, install, and uninstall without advanced PowerShell knowledge.

  1. 1. Download the installer: Visit the official WPS website and download the free installation package.
  2. 2. Run the setup: Double-click the downloaded file and follow the simple on-screen instructions to install.
  3. 3. Start creating: Open WPS Office and instantly begin editing your existing Microsoft Office documents.
Unlike preinstalled bloatware, WPS Office can be easily managed or cleanly uninstalled without complex PowerShell scripts.100% compatible with Microsoft Word, Excel, and PowerPoint formats to ensure seamless transitions.Lightweight setup package that deploys in seconds and takes up minimal system resources.Free to use with a familiar, intuitive interface that requires zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my PowerShell script still show manual confirmation prompts when uninstalling Office?

This typically occurs if the silent switches (such as /quiet or /qn) are omitted, incorrectly formatted for the specific executable, or if the preinstalled version is a Windows App (UWP) that requires different removal cmdlets like Remove-AppxPackage instead of traditional uninstaller executions.

What is the Office Deployment Tool (ODT)?

The Office Deployment Tool is a command-line utility from Microsoft that allows IT administrators to download, deploy, and manage Microsoft 365 Apps. It utilizes an XML configuration file which can be configured to forcefully and silently remove existing Office installations.

Can I silently remove preinstalled Office Hub apps using PowerShell?

Yes. Preinstalled Windows 10/11 machines often include the 'Get Office' or 'Office Hub' app. You can typically remove this silently across all users by running PowerShell as an Administrator and executing: Get-AppxPackage *MicrosoftOfficeHub* -AllUsers | Remove-AppxPackage -AllUsers.

Where can I find the correct uninstall string for Office?

You can find uninstall strings in the Windows Registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall or HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall. Look for the 'UninstallString' value under the key corresponding to your Office version.