Yes, that will do nearly all I need, on a Vista / Server 2008 system (though
doesn't tell me VL v. Retail, but I can live without that). However, it
doesn't cut it on Server 2003 / Windows XP x64 (where Edition isn't
available) and doesn't tell me if I'm on SBS or Server, much less which
version of Server. There I've used -matches "76588-" on the Product ID to
tell me it's Windows XP x64, since there is only a single version of it. But
that's fairly ugly, and doesn't lend itself to doing math on it or building
a simple (<g>) switch statement.
I fear we may be back to parsing ProductID to get everything...
--
Charlie.
http://msmvps.com/xperts64 http://mvp.support.microsoft.com/profile/charlie.russel
"Jon" <Email_Address@xxxxxx> wrote in message
news:%239YXVaAiIHA.4744@xxxxxx