When does my OpsMgr 2007 R2 Eval versions ends?

Today I am at a customer who has installed the OpsMgr 2007 R2 Evaluation version and wanted to know when the evaluation periods ends. I thought the easiest way would be look at the install date of the RMS and add 180 days.

So I created a PowerShell script to do that for me.

$InstallDate = get-managementserver | where {$_.IsRootManagementServer -eq "True"} | select InstallTime
Write-host "RMS is installed on: " $InstallDate.InstallTime
$InstallDate2 = $InstallDate.InstallTime
Write-host "OpsMgr Eval ends on: " $InstallDate2.AddDays(180)

Just copy the above lines and run them from the OpsMgr Command Shell.