Skip to content
Menu

Windows 10 PC Needs Windows 11 - Check Eligibility and Start the In-Place Upgrade

Checks the OS, UEFI, TPM 2.0, processor, RAM, disk, free space and pending restart, then starts the upgrade. High risk: needs DryRun=false and Approve=update-windows-10-to-11.

Windows 10 PC needs Windows 11 - check eligibility and start the in-place upgrade is free for members.

Enter your email to create your free account and get the file.

We'll email you the script and the weekly MSP Outpost email. Unsubscribe anytime. Privacy policy.

Already a member? Sign in.

Be the first to review Windows 10 PC needs Windows 11 - check eligibility and start the in-place upgrade. Tell other MSPs how it worked for you.

Write a Review

LanguagePowerShell
Runs onWindows 10; runs as SYSTEM
NeedsPowerShell 5.1, administrator rights, Windows 11 media or internet access to Microsoft
Changes thingsChanges what it runs on

What It Does

This script is a dry run until you set DryRun=false and Approve=update-windows-10-to-11. It makes one change, starting the upgrade, and never restarts the PC itself. A PC that already runs Windows 11 answers OK, and so does a PC where an upgrade is already running. Windows Server is skipped.

The eligibility check writes one row per requirement: 64-bit Windows 10 version 2004 (build 19041) or later; UEFI firmware, with the Secure Boot state reported; TPM 2.0 present and enabled; a 64-bit processor with 2 or more cores at 1 GHz or faster; RAM of at least MinRamGB; a system disk of at least MinDiskGB; FreeSpaceGB free on the system drive; and no restart waiting. A PC that fails any row is skipped and the answer names every reason. Microsoft's list of supported processor models and its compatibility holds are not checked here. Windows Setup checks them itself and refuses an unsupported PC.

With MediaPath set, it runs setup.exe from that folder (extracted media, a mounted ISO or a share) with /auto upgrade /quiet, after checking the file is signed by Microsoft. Unless AllowReboot is true it adds /noreboot, so Setup prepares everything and then waits for a restart you choose. With MediaPath empty, it downloads Microsoft's Windows 11 Installation Assistant, checks its signature and runs it silently. The Assistant restarts the PC by itself and cannot be stopped, so this only runs when AllowReboot is true.

The script returns as soon as Setup has started. The upgrade runs in the background for 30 to 90 minutes, and Setup's own log is C:\$WINDOWS.~BT\Sources\Panther\setupact.log. The upgrade keeps files, apps and settings, and Windows normally keeps the old Windows for 10 days so the user can go back. When AllowReboot is true and someone is signed in, the answer names them, because the restart comes without warning.

Before You Run It

  • Run it as a dry run first. It checks the PC and says how it would start the upgrade, and starts nothing.
  • Back up the PC first. The upgrade keeps files and apps, but a bad upgrade is still a bad day.
  • Decide how it starts. With MediaPath, Setup waits for you to restart the PC. Without it, AllowReboot=true is required and the PC restarts itself.
  • Check the processor is on Microsoft's supported list yourself. This script does not, and Setup refuses an unsupported one.
  • Tell the user before you set AllowReboot to true. The restart does not ask them.

Type and Risk

  • Type: Action. It makes its change, checks the change worked and says what changed. It exits 0, or 2 when it could not do the job.
  • Risk: High. It is a dry run unless you set both DryRun=false and Approve=update-windows-10-to-11, and it stops before making more than 25 changes in one run unless you raise MaxChanges. Run it once as a dry run and read the list first.
  • What it changes: Starts the Windows 11 in-place upgrade (Windows Setup or the Installation Assistant), which later restarts the PC and replaces Windows 10.
  • Restart: It never restarts the machine itself. When a restart is needed to finish, the answer says so.
  • Typical run: Under 1 minute to start; the upgrade then runs 30 to 90 minutes.
  • Example answer: "Started the Windows 11 upgrade from setup media; it waits for a restart"
  • Tested before listing on Windows 11 with Windows PowerShell 5.1, run as SYSTEM, against its own test cases.

Inputs

Pass an input as an argument (-Name value), as an environment variable with the same name, which is how most RMMs pass script variables, or change its default in the param() block at the top of the script. An argument wins over an environment variable, which wins over the default.

  • MediaPath: Folder that contains Windows 11 setup.exe. Default empty = use the Installation Assistant (needs AllowReboot=true).
  • AllowReboot: true lets the upgrade restart the PC by itself (required for the Installation Assistant). Default false: with MediaPath, Setup waits for a restart you start.
  • MinRamGB: Minimum RAM in GB. Whole number, 1 to 4096. Default 4 (Microsoft's minimum).
  • MinDiskGB: Minimum size of the system disk in GB. Whole number, 1 to 100000. Default 64 (Microsoft's minimum).
  • FreeSpaceGB: Minimum free space on the system drive in GB. Whole number, 1 to 100000. Default 30.
  • IncludeWindows11: true runs the eligibility checks on a PC that already runs Windows 11, for a dry run to test the checks. A real upgrade is refused on Windows 11. Default false.

Every script also takes DryRun, OutputFormat (Text, Answer, Json or Csv), ExportPath and ResultField, which writes the answer to an RMM custom field.

License

Provided "as is" under the MIT License, without warranty of any kind. Test before production use. MSP Outpost and User First Digital Inc. accept no liability for any damage or loss.

The Script

update-windows-10-to-11.ps1 · 1041 lines · 54.7 KB

Free for Members

Create a free account or sign in to read, copy and download this script.

Welcome Back

Sign in to your MSP Outpost account.