How To check if Windows 10 or Windows 11 is activated using PowerShell Command

To check if Windows 10 is activated using PowerShell, you can use the following command:

(Get-CimInstance -ClassName SoftwareLicensingProduct -Filter "Name like 'Windows%'" | Where-Object { $_.PartialProductKey }).LicenseStatus

License Status Values:

The command returns an integer that indicates the activation status:

  • 0 – Unlicensed
  • 1 – Licensed
  • 2 – Out of tolerance
  • 3 – Not licensed
  • 4 – Notification

Example Usage

After running the command, if the result is 1, your Windows installation is activated.

Alternatively, you can use this shorter PowerShell command, which provides a clear summary:

slmgr /xpr

This will open a small window indicating whether your Windows installation is activated.

 

 

#Windows10 #Windows11 #WindowsActivation #HowtoactivateWindows

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top