With the release of Windows 11, Microsoft introduced new system requirements to ensure a smoother and more secure user experience. However, these requirements have left many users wondering if their current systems are compatible. To simplify this process, I've created a PowerShell script that checks your system's compatibility with Windows 11 and provides color-coded feedback for easy interpretation.
Why PowerShell
PowerShell is a powerful scripting language built into Windows, making it accessible to anyone with a Windows machine. It allows you to automate tasks and retrieve system information efficiently. By leveraging PowerShell, we can create a script that checks key Windows 11 requirements and provides immediate feedback.
The Script
Here's the complete PowerShell script that checks various Windows 11 compatibility requirements.
What Does the Script Do?
- Color-Coded Output: The
Write-ColorOutput
function prints messages in green if the check passes and in red if it fails, making it easy to spot issues. - Secure Boot Status: Checks if Secure Boot is enabled.
- TPM Version: Verifies if TPM 2.0 is present, which is a crucial requirement for Windows 11.
- CPU Compatibility: Retrieves CPU details. (Note: The actual compatibility check against Microsoft's list is not implemented in this script. For now, it assumes the CPU passes the check.)
- RAM Check: Ensures the system has at least 4 GB of RAM.
- Storage Check: Verifies that each drive has at least 64 GB of used space.
- System Firmware Type: Confirms that the system firmware type is UEFI, which is required for Windows 11.
Running the Script
To run this script:
Open PowerShell as an Administrator.Copy and paste the script into the PowerShell window.Press Enter to execute.
0 Comments