Windows 11 is the latest version of Microsoft’s operating system, which offers a new user interface, improved performance, and enhanced security. However, not all devices are eligible for the free upgrade, and some users may prefer to have more control over the installation process. In this blog post, we will show you how to use a PowerShell script to upgrade to Windows 11 directly over the internet, without using the Windows Update or Media Creation Tool.

Why Use a PowerShell Script?

PowerShell is a powerful tool that lets you automate tasks and manage systems by running a set of commands in its console. A PowerShell script contains these commands. Using a PowerShell script can help you overcome some of the challenges or problems that you might face when you try to upgrade to Windows 11 with the Windows Update or Media Creation Tool, such as:

  • Your device does not meet the minimum hardware requirements for Windows 11, like having a compatible processor or a TPM 2.0 chip.
  • Your device is not part of the Windows Insider Program, which you need to join to get the Windows 11 preview builds for now.
  • Your device has low disk space, incompatible drivers, or other issues that stop the upgrade from finishing successfully.
  • You want more control over how to download and install Windows 11, such as picking the edition, language, or architecture, or choosing where to install it.

A PowerShell script can help you overcome some of the limitations or tailor the upgrade process to your liking. However, you should also consider the possible disadvantages and dangers of using this method, such as:

  • The device might malfunction after the upgrade, or suffer from issues with stability, performance, or security.
  • The device might lose some features or settings that are not compatible with Windows 11, or might have to reinstall some applications or drivers.
  • The device might be unable to revert to the previous version of Windows, or might face errors or data loss during the reversion process.
  • The user might breach the terms and conditions of the Windows license agreement, or might not get future updates or support from Microsoft.

Therefore, before using this method, you should make sure that you have a backup of your important data, and that you are willing to accept the potential consequences of upgrading to an unsupported or unstable version of Windows.

How to Use the PowerShell Script?

The PowerShell script that we will use in this tutorial is based on the one created by AveYo, which is a modified version of the official Media Creation Tool that can download and install any version of Windows 10 or Windows 11. The script has been tested and verified by many users, but you should still use it at your own risk and discretion.

Here are the steps to use the script:

  • Download the script from this link and save it with a .ps1 extension on your device.
  • Right-click the .ps1 file and choose “Run with PowerShell”. You can also open the PowerShell console as an administrator and go to the folder where you saved the .ps1 file.
  • A graphical user interface will appear and help you with the upgrade process. You can select the edition, language, and architecture of Windows 11 that you want to download. You can also decide if you want to upgrade the current device or make an installation media for another device.
  • The script will download the Windows 11 ISO file from the official Microsoft servers and check its integrity. If you have already downloaded the ISO file from somewhere else, you can use that instead.
  • The script will extract the ISO file and get the installation files ready. You can tell the script where to store the installation files, or let it pick the default location.
  • The script will begin the installation process, which might take a few minutes or hours depending on your device and internet speed. You can keep your personal files and apps, or do a clean install that will delete everything on your device.
  • The script will restart your device and finish the installation process. You might need to follow some instructions on the screen to set up your Windows 11 account and preferences.

Once the installation is finished, you can enjoy your new Windows 11 experience. You can also delete the installation files and the


<#PSScriptInfo

.VERSION 1.0

.GUID

.AUTHOR Bindusar Kushwaha

.COMPANYNAME

.COPYRIGHT

.TAGS

.LICENSEURI

.PROJECTURI

.ICONURI

.EXTERNALMODULEDEPENDENCIES

.REQUIREDSCRIPTS

.EXTERNALSCRIPTDEPENDENCIES

.RELEASENOTES
The purpose of this script is to Upgrade Windows 10 machines to Windows 11 Latest version over internet.

#>


function Write-Host()
{
PARAM(
[Parameter(Mandatory=$true)]$Message,
$Type="Information"
)

[System.Diagnostics.EventLog]::WriteEntry("Windows 11 Upgrade Custom", $Message, "$Type", 500)
}

$dir= "C:\_Windows_Upgrade\packages"

Write-Host "Setting the download location as $dir"

Try
{
If(!(Test-Path $dir))
{
mkdir $dir
}
}
Catch
{
Write-Host "$error[0]" -Type "Error"
}

$webClient= New-object System.Net.WebClient

$url = "Https://go.microsoft.com/fwlink/?linkid=2171764"

$file = "$($dir)\Windows11InstallationAssistant.exe"

Write-Host "Initiating the file $file download to $dir..."

Try
{
$webClient.DownloadFile($url, $file)
}
Catch
{
Write-Host "$Error[0]" -Type "Error"
}

Write-Host "Starting to install in silent mode..."

Try
{
Start-Process -FilePath $file -ArgumentList '/quietinstall /EULA accept /auto upgrade /copylogs $dir'
}
Catch
{
Write-Host "$Error[0]" -Type "Error"
}

Hope this helps.

Leave a comment

I’m Bindusar

Welcome to BINLABS, my cozy corner of the internet dedicated to IT admins and their daily encounter. Here, I invite you to join me for daily challenges with solution faced by admins using scripts. Let’s script together!

Let’s connect