On Windows 10 or Windows Server 2016/2019, to display the activation status using the invite de commandes (or powershell) open your preferred ligne de commande tool and enter the following command
slmgr /xpr
a dialog is shown indicating the système d'exploitation's activation status. Si le système d'exploitation n'est pas yet activated, the dialog will indicate it is in 'Notification mode'
If Windows is succesfully activated, the dialog will indicate is is either 'Permanently Activated' as shown below, or if using a time-limited volume license activatisur le time the activation is due to expire sera shown.
On older versions of Windows (such as Windows 7) the message dialogs sera similar but may have slightly differing text.
This method could également be useful to vérifiez le activation status during the out-of-box experience (OOBE) wizard by using Shift + F10 to launch a invite de commandes, avant completing the wizard.