A simple PowerShell script to retrieve your Windows 11 product key. This script makes it easy to fetch and back up your activation key for reinstallation, migration, or safe keeping.
- Quickly retrieves your Windows 11 product key.
- No third-party software required—run directly in PowerShell.
- Lightweight and user-friendly.
To get the script, follow these steps:
- Click on the green Code button at the top right of this repository.
- Select Download ZIP and extract it to your desired location.
- Alternatively, clone the repository using:
git clone https://github.com/larevuegeek/windows-key-extractor.git
- Alternatively, clone the repository using:
- Press
Win + S
, type PowerShell, and select Run as Administrator.- Running as administrator ensures the script has the necessary permissions.
- Navigate to the folder containing the
getWindowsKey.ps1
file. Use thecd
command in PowerShell, for example:cd C:\path\to\script