What Is the Microsoft Office Centennial Detection PowerShell Command?
Question details
The user wants to know the purpose of the Microsoft Office Centennial Detection PowerShell command and whether it installs Office or is safe to allow through an antivirus program.

- Product
- Microsoft Office Desktop AppX
- Device & OS
- Windows
- Scenario
- Encountering a background PowerShell script or antivirus warning related to Centennial Detection and Microsoft.Office.Desktop AppX.
- Observed behavior
- The system runs a silent PowerShell script checking for the Microsoft.Office.Desktop package and writes a result to a temporary scratch file, which sometimes triggers an antivirus alert.
Before making any exceptions in your antivirus software, ensure your system's security definitions are up to date and visually verify the script's command line to confirm its source.
Verify and Safely Handle the Centennial Detection Script
Understand the script's purpose and learn how to check its legitimacy when flagged by an antivirus program.
The Centennial Detection command is a legitimate diagnostic script used to identify whether the Microsoft Store (Centennial) version of Microsoft Office is installed.
It specifically checks for the 'Microsoft.Office.Desktop' AppX package across all user profiles and outputs the result (0 or 1) to a temporary scratch file named 'Centennial.Detection.IsCentennialOfficeInstalled.scratch'. Importantly, this script does not install Microsoft Office; it only checks its status.
Open your antivirus software's quarantine or alert history. Look at the exact command line triggered. It should reference PowerShell, 'Microsoft.Office.Desktop', and the Centennial scratch file.
Ensure the script originated from a trusted Microsoft update process or an official enterprise deployment tool. If you are on a corporate network, contact your IT administrator to confirm they are running Office detection tasks.
If you confirm the script is part of an official Microsoft Office update or deployment, you can safely whitelist it in your antivirus settings. If the source is unknown or suspicious, keep it blocked and run a full system scan.

Seek Technical Assistance on Microsoft Q&A
If you are an IT administrator dealing with unexpected deployment scripts, consult the official technical forums for verification.
Avoid Complex Background Scripts with WPS Office
Dealing with background PowerShell scripts, AppX package detection, and unexpected antivirus alerts for Microsoft Office can be frustrating. Switch to WPS Office for a straightforward, lightweight, and completely free alternative that installs cleanly and runs smoothly without complex background diagnostics.
- 1. Download the installer: Visit the official WPS Office website and click the free download button.
- 2. Run the setup: Open the lightweight setup file and follow the straightforward on-screen instructions to install the software.
- 3. Start working instantly: Open WPS Writer, Spreadsheet, or Presentation to immediately start working with your existing Microsoft Office files.

Frequently Asked Questions
Does the Centennial Detection script install Microsoft Office?
No. The command is purely a detection script. It only checks if the Microsoft.Office.Desktop AppX package is already installed on the system and outputs a status result. It will not install or modify your Office applications.
Why is my antivirus blocking the Centennial Office script?
Antivirus software often flags the script because it executes PowerShell silently in the background with limited startup options. While usually safe and legitimate, you should always verify the command's source before allowing security exceptions.
What does the IsCentennialOfficeInstalled.scratch file do?
It is a temporary text file where the PowerShell script writes a binary result (0 or 1). A '1' typically means the Microsoft Store version of Office is installed across the user profiles, while a '0' means it is not.
What is Project Centennial?
Project Centennial (now known as the Desktop Bridge) is a Microsoft technology that enables developers to package traditional desktop applications (Win32) as Universal Windows Platform (UWP) apps for distribution via the Microsoft Store.




