When does my Opsmgr 2007 R2 eval ends?

I saw this little but nice PowerShell script and just want to show it.
It’s a simple way to see how many days left it is on the eval Opsmgr 2007 R2 ends.

$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)

For more info, look at Stefan Strangers blog post here:
http://blogs.technet.com/stefan_stranger/archive/2009/06/24/when-does-my-opsmgr-2007-r2-eval-versions-ends.aspx

No related posts.

This entry was posted in PowerShell Blogs and tagged , . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>