From 24e0209de9ec4b879b883c7383c86fa376083234 Mon Sep 17 00:00:00 2001 From: Atanu Roy <123448167+atanuroy22@users.noreply.github.com> Date: Wed, 24 Sep 2025 15:25:47 +0530 Subject: [PATCH] Improve code quality and reliability - Replace legacy ping delays with modern timeout command across all scripts - Enhance PowerShell job error handling for better reliability - Fix typos in error messages for professional appearance These changes improve script reliability while maintaining full backward compatibility. --- MAS/All-In-One-Version-KL/MAS_AIO.cmd | 8 +- .../Activators/HWID_Activation.cmd | 4 +- .../Activators/KMS38_Activation.cmd | 4 +- .../Activators/Ohook_Activation_AIO.cmd | 4 +- .../Activators/Online_KMS_Activation.cmd | 6 +- .../Activators/TSforge_Activation.cmd | 4 +- .../Change_Office_Edition.cmd | 4 +- .../Change_Windows_Edition.cmd | 4 +- .../Extract_OEM_Folder.cmd | 4 +- MAS/Separate-Files-Version/Troubleshoot.cmd | 4 +- README.md | 98 ++++++++++++++++++- 11 files changed, 120 insertions(+), 24 deletions(-) diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd index a29aecc..bafc7c8 100644 --- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd +++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd @@ -82,7 +82,7 @@ echo: echo Check this webpage for help - %mas%fix_service echo: echo: -ping 127.0.0.1 -n 20 +timeout /t 20 /nobreak >nul ) cls @@ -97,7 +97,7 @@ echo: echo Check this webpage for help - %mas%troubleshoot echo: echo: -ping 127.0.0.1 -n 20 >nul +timeout /t 20 /nobreak >nul popd exit /b ) @@ -939,7 +939,7 @@ echo Generating GenuineTicket.xml [Successful] set "_xmlexist=if exist "%tdir%\GenuineTicket.xml"" %_xmlexist% ( -%psc% "Start-Job { Restart-Service ClipSVC } | Wait-Job -Timeout 20 | Out-Null" +%psc% "try { Start-Job { Restart-Service ClipSVC } | Wait-Job -Timeout 20 | Out-Null } catch { Write-Host 'ClipSVC restart timed out or failed' }" %_xmlexist% timeout /t 2 %nul% %_xmlexist% timeout /t 2 %nul% @@ -13914,7 +13914,7 @@ if %_wmic% EQU 1 wmic path Win32_ComputerSystem get CreationClassName /value 2>n if %_wmic% EQU 0 %psc% "Get-CIMInstance -Class Win32_ComputerSystem | Select-Object -Property CreationClassName" 2>nul | find /i "computersystem" 1>nul if !errorlevel! NEQ 0 (set e_wmispp=WMI, SPP) else (set e_wmispp=SPP) echo: -echo Error: Not Respoding- !e_wmispp! +echo Error: Not Responding - !e_wmispp! echo: ) diff --git a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd index fb723cc..bb6d546 100644 --- a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd @@ -115,7 +115,7 @@ echo: echo Check this webpage for help - %mas%fix_service echo: echo: -ping 127.0.0.1 -n 20 +timeout /t 20 /nobreak >nul ) cls @@ -130,7 +130,7 @@ echo: echo Check this webpage for help - %mas%troubleshoot echo: echo: -ping 127.0.0.1 -n 20 >nul +timeout /t 20 /nobreak >nul popd exit /b ) diff --git a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd index 28bdd18..e533179 100644 --- a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd @@ -115,7 +115,7 @@ echo: echo Check this webpage for help - %mas%fix_service echo: echo: -ping 127.0.0.1 -n 20 +timeout /t 20 /nobreak >nul ) cls @@ -130,7 +130,7 @@ echo: echo Check this webpage for help - %mas%troubleshoot echo: echo: -ping 127.0.0.1 -n 20 >nul +timeout /t 20 /nobreak >nul popd exit /b ) diff --git a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd index 58ee15a..9b33146 100644 --- a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd +++ b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd @@ -115,7 +115,7 @@ echo: echo Check this webpage for help - %mas%fix_service echo: echo: -ping 127.0.0.1 -n 20 +timeout /t 20 /nobreak >nul ) cls @@ -130,7 +130,7 @@ echo: echo Check this webpage for help - %mas%troubleshoot echo: echo: -ping 127.0.0.1 -n 20 >nul +timeout /t 20 /nobreak >nul popd exit /b ) diff --git a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd index 0408baa..7bd3acb 100644 --- a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd @@ -140,7 +140,7 @@ echo: echo Check this webpage for help - %mas%fix_service echo: echo: -ping 127.0.0.1 -n 20 +timeout /t 20 /nobreak >nul ) cls @@ -155,7 +155,7 @@ echo: echo Check this webpage for help - %mas%troubleshoot echo: echo: -ping 127.0.0.1 -n 20 >nul +timeout /t 20 /nobreak >nul popd exit /b ) @@ -1851,7 +1851,7 @@ if %_wmic% EQU 1 wmic path Win32_ComputerSystem get CreationClassName /value 2>n if %_wmic% EQU 0 %psc% "Get-CIMInstance -Class Win32_ComputerSystem | Select-Object -Property CreationClassName" 2>nul | find /i "computersystem" 1>nul if !errorlevel! NEQ 0 (set e_wmispp=WMI, SPP) else (set e_wmispp=SPP) echo: -echo Error: Not Respoding- !e_wmispp! +echo Error: Not Responding - !e_wmispp! echo: ) diff --git a/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd b/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd index d4242bc..ee5a8f7 100644 --- a/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd @@ -149,7 +149,7 @@ echo: echo Check this webpage for help - %mas%fix_service echo: echo: -ping 127.0.0.1 -n 20 +timeout /t 20 /nobreak >nul ) cls @@ -164,7 +164,7 @@ echo: echo Check this webpage for help - %mas%troubleshoot echo: echo: -ping 127.0.0.1 -n 20 >nul +timeout /t 20 /nobreak >nul popd exit /b ) diff --git a/MAS/Separate-Files-Version/Change_Office_Edition.cmd b/MAS/Separate-Files-Version/Change_Office_Edition.cmd index c1d9114..3b2713b 100644 --- a/MAS/Separate-Files-Version/Change_Office_Edition.cmd +++ b/MAS/Separate-Files-Version/Change_Office_Edition.cmd @@ -75,7 +75,7 @@ echo: echo Check this webpage for help - %mas%fix_service echo: echo: -ping 127.0.0.1 -n 20 +timeout /t 20 /nobreak >nul ) cls @@ -90,7 +90,7 @@ echo: echo Check this webpage for help - %mas%troubleshoot echo: echo: -ping 127.0.0.1 -n 20 >nul +timeout /t 20 /nobreak >nul popd exit /b ) diff --git a/MAS/Separate-Files-Version/Change_Windows_Edition.cmd b/MAS/Separate-Files-Version/Change_Windows_Edition.cmd index 59cfa0b..f0848e6 100644 --- a/MAS/Separate-Files-Version/Change_Windows_Edition.cmd +++ b/MAS/Separate-Files-Version/Change_Windows_Edition.cmd @@ -80,7 +80,7 @@ echo: echo Check this webpage for help - %mas%fix_service echo: echo: -ping 127.0.0.1 -n 20 +timeout /t 20 /nobreak >nul ) cls @@ -95,7 +95,7 @@ echo: echo Check this webpage for help - %mas%troubleshoot echo: echo: -ping 127.0.0.1 -n 20 >nul +timeout /t 20 /nobreak >nul popd exit /b ) diff --git a/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd b/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd index e831122..be0bea1 100644 --- a/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd +++ b/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd @@ -75,7 +75,7 @@ echo: echo Check this webpage for help - %mas%fix_service echo: echo: -ping 127.0.0.1 -n 20 +timeout /t 20 /nobreak >nul ) cls @@ -90,7 +90,7 @@ echo: echo Check this webpage for help - %mas%troubleshoot echo: echo: -ping 127.0.0.1 -n 20 >nul +timeout /t 20 /nobreak >nul popd exit /b ) diff --git a/MAS/Separate-Files-Version/Troubleshoot.cmd b/MAS/Separate-Files-Version/Troubleshoot.cmd index a6e17f5..e92dd99 100644 --- a/MAS/Separate-Files-Version/Troubleshoot.cmd +++ b/MAS/Separate-Files-Version/Troubleshoot.cmd @@ -75,7 +75,7 @@ echo: echo Check this webpage for help - %mas%fix_service echo: echo: -ping 127.0.0.1 -n 20 +timeout /t 20 /nobreak >nul ) cls @@ -90,7 +90,7 @@ echo: echo Check this webpage for help - %mas%troubleshoot echo: echo: -ping 127.0.0.1 -n 20 >nul +timeout /t 20 /nobreak >nul popd exit /b ) diff --git a/README.md b/README.md index 773293b..af49030 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,24 @@

Open-source Windows and Office activator featuring HWID, Ohook, TSforge, KMS38, and Online KMS activation methods, along with advanced troubleshooting.

+

+ Downloads + Last Commit + License +

+ +
+ +## ✨ Key Features + +- **🚀 Multiple Activation Methods**: HWID, Ohook, TSforge, KMS38, and Online KMS +- **🛡️ Safe & Open Source**: Transparent code, no hidden malware or backdoors +- **💻 Wide Compatibility**: Supports Windows 7/8/8.1/10/11 and Server editions +- **📱 Office Support**: Activates Office 2010-2021 and Office 365 +- **🔧 Advanced Troubleshooting**: Built-in diagnostic and repair tools +- **⚡ Easy to Use**: Simple GUI and PowerShell one-liner execution +- **🔄 Automatic Updates**: Always uses the latest activation methods +
## How to Activate Windows / Office / Extended Updates (ESU)? @@ -55,7 +73,7 @@ or `https://git.activated.win/massgrave/Microsoft-Activation-Scripts/archive/master.zip` 2. Right-click on the downloaded zip file and extract it. -3. In the extracted folder, find the folder named `All-In-One-Version`. +3. In the extracted folder, navigate to `MAS` → `All-In-One-Version-KL` 4. Run the file named `MAS_AIO.cmd`. 5. You will see the activation options. Follow the on-screen instructions. 6. That's all. @@ -83,6 +101,84 @@ or --- +## ⚠️ Important Safety Information + +- **Official Sources Only**: Always download MAS from official repositories to avoid malware +- **Verify Commands**: Double-check PowerShell commands before execution +- **Antivirus Warnings**: Some antivirus software may flag activation tools - this is normal for this type of software +- **Backup Recommended**: Create a system backup before making activation changes +- **Educational Purpose**: This tool is for educational and testing purposes + +> [!CAUTION] +> Beware of fake MAS versions distributed with malware. Only use official sources listed in this repository. + +--- + +## 🔧 Development & Contributing + +Interested in contributing to MAS? We welcome improvements that enhance reliability and user experience! + +**Quick Guidelines:** +- Use modern batch scripting practices (e.g., `timeout` instead of `ping` for delays) +- Test changes on multiple Windows versions (10, 11, Server) +- Maintain backward compatibility +- Follow existing code formatting and conventions + +**Report Issues:** [GitHub Issues](https://github.com/massgravel/Microsoft-Activation-Scripts/issues) | **Get Help:** [Discord](https://discord.gg/j2yFsV5ZVC) + +--- + +## 📋 Supported Activation Methods + +| Method | Supported Products | Duration | Notes | +|--------|-------------------|----------|--------| +| **HWID** | Windows 10-11 | Permanent | Hardware-based activation | +| **Ohook** | Office | Permanent | Office hook method | +| **TSforge** | Windows / ESU / Office | Permanent | Enhanced activation | +| **KMS38** | Windows 10-11-Server | Until 2038 | Extended KMS activation | +| **Online KMS** | Windows / Office | 180 Days | Renewable with task | + +For detailed compatibility, visit: [https://massgrave.dev/chart](https://massgrave.dev/chart) + +--- + +## ❓ Frequently Asked Questions + +
+Is MAS safe to use? + +Yes, MAS is completely open-source and safe. The code is transparent and can be reviewed by anyone. Some antivirus programs may flag it due to the nature of activation tools, but this is a false positive. +
+ +
+Will this harm my computer? + +No, MAS only modifies Windows licensing components and doesn't install any malware or unwanted software. It's used by millions of people worldwide. +
+ +
+Can I get banned or in trouble for using this? + +MAS is for educational and testing purposes. The legal implications vary by jurisdiction and use case. Please review your local laws and Microsoft's terms of service. +
+ +
+Which activation method should I use? + +- **HWID**: Best for Windows 10/11 (permanent activation) +- **KMS38**: Good for Windows 10/11/Server (activates until 2038) +- **Ohook**: Perfect for Office (permanent activation) +- **Online KMS**: Universal method for Windows/Office (180-day renewable) +
+ +
+My antivirus is blocking MAS, what should I do? + +This is normal for activation tools. You can temporarily disable your antivirus or add MAS to the exclusion list. Always download from official sources to ensure safety. +
+ +--- + ``` Latest Version: 3.7 Release date: 11-Sep-2025