Skip to main content

How do I check the compatibility of a Windows workstation before an upgrade?

Applies to: Medulla / Windows
Version: Windows 10 / Windows 11
Environment: On-Premise / SaaS
Category: Administration / Windows Migration

The win_upgrade_check.py script checks whether a Windows workstation is ready for a major operating system upgrade.

In particular, it supports the following scenarios:

  • Windows 10 to Windows 11.
  • Windows 11 24H2 to 25H2.
  • Windows 11 21H2, 22H2, or 23H2 to 25H2.

It checks the main prerequisites: processor, memory, TPM 2.0, UEFI, Secure Boot, disk space, Windows Update, pending reboots, and system integrity.

Note: The script only performs a diagnostic check. It does not initiate the Windows upgrade or modify the workstation configuration.

What are the prerequisites?

  • Windows 10 or Windows 11.
  • Python 3.8 or later.
  • PowerShell must be available.
  • Administrator privileges are recommended to perform all checks.

No additional Python libraries are required.

How do I download and run the script?

The script is available on the Medulla download server:

Download win_upgrade_check.py

Download with wget:

wget https://dl.medulla-tech.io/ma/win_upgrade_check.py

Running the script:

python win_upgrade_check.py

The script automatically detects the Windows version and adapts the checks to the migration scenario.

What options are available?

Option Description
--full Forces a full hardware check.
--deep Performs an in-depth scan with DISM.
--medulla Checks certain components of the Medulla agent.
--collect Generates a detailed system diagnostic report.
--output-dir Sets the report directory.
--skip-dxdiag Skips DirectX checks.
--no-report Disables the standard text report.
--no-color Disables console colors.

Example of a full diagnostic:

python win_upgrade_check.py --full --deep --medulla --collect --output-dir C:\Temp

How do I interpret the results?

Result Meaning
PASS Satisfactory result.
WARN Further verification recommended.
FAIL Blocking issue identified.
INFO Additional information.

The script also returns an exit code:

  • 0: workstation ready.
  • 1: ready with conditions.
  • 2: not ready.

How do I use this script with Medulla?

The script can be run on workstations managed by Medulla to prepare for a Windows migration campaign.

The --medulla option allows you to check certain agent services, processes, and settings before the upgrade.

The generated reports help identify which workstations are ready and which require prior intervention.

Recommended command:

python win_upgrade_check.py --medulla --collect --output-dir C:\Temp

Important: A positive result does not guarantee a successful migration. The compatibility of business applications, drivers, and the processor must also be verified. It is recommended to start with a pilot group of workstations.