To display license information including remaining evalution time:
To display detailed license information including rearm count:
To display expiration date:
To rearm Windows (after evaluation has expired):
To activate windows (after rearm you need to activate windows within 10 days):
TIP! If you like, you could schedule the rearm using Scheduled Tasks.
After evaluation period has ended you can convert the evaluation to a retail version (unless it is a Domain Controller).
To get the current edition of Windows:
dism /Online /Get-CurrentEdition
To convert from evaluation versions of Windows to retail versions:
dism /Online /Set-Edition:
You can also use this to upgrade Windows to a higher edition. To get a list of editions you can upgrade to:
dism /Online /Get-TargetEditions