Microsoft 365 Installation Problems

What Is the Microsoft Office Centennial Detection PowerShell Command?

Steve KSteve K Oct 28, 2026 868 views

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.

What Is the Microsoft Office Centennial Detection PowerShell Command?
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 you start

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.

Solution 1Recommended

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.

1
Review the antivirus alert details

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.

2
Verify the script source

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.

3
Allow or block the process

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.

Verify and Safely Handle the Centennial Detection Script
What is Centennial?: Project Centennial was Microsoft's bridge technology to bring classic Win32 desktop apps (like Office) to the Universal Windows Platform (UWP) and the Microsoft Store.
Free Microsoft Office alternative

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. 1. Download the installer: Visit the official WPS Office website and click the free download button.
  2. 2. Run the setup: Open the lightweight setup file and follow the straightforward on-screen instructions to install the software.
  3. 3. Start working instantly: Open WPS Writer, Spreadsheet, or Presentation to immediately start working with your existing Microsoft Office files.
No complex background AppX or PowerShell scripts running silently.Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx).Lightweight installation package that doesn't trigger false antivirus alarms.Familiar user interface for a seamless migration.
QA img-9

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.