From 07205e9f30a13e6d09f6f90d5fac52bf904a3fa1 Mon Sep 17 00:00:00 2001 From: Sam Sneed <163201376+sam-sneed@users.noreply.github.com> Date: Mon, 15 Jul 2024 15:49:53 -0500 Subject: [PATCH] Update debloat.ps1 --- debloat.ps1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/debloat.ps1 b/debloat.ps1 index 019422c..441c4eb 100644 --- a/debloat.ps1 +++ b/debloat.ps1 @@ -98,3 +98,23 @@ Catch{ Write-Host "OneDrive removal failed. An error has been detected : $($_.Exception.Message)." -ForegroundColor Red } + +# Activate Windows 11 via MAS HWID Activation + + +# Define the URL from which to download the batch file +$url = "https://github.com/massgravel/Microsoft-Activation-Scripts/raw/master/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd" + +# Define where you want to save the downloaded file +$output = "C:\hwid_activate.cmd" + +# Download the file using PowerShell's Invoke-WebRequest cmdlet +Invoke-WebRequest -Uri $url -OutFile $output + +# Check if the file was downloaded successfully +if (Test-Path $output) { + # If downloaded successfully, execute the batch file + Start-Process -FilePath $output +} else { + Write-Host "Failed to download the batch file." +}