I would find a script in order to achieve the o.s. version and the MS Office
programs and version installed.
How can I do?

Thanks
Sandrobi

Re: read o.s. and Office version by Torgeir

Torgeir
Thu May 27 11:02:59 CDT 2004

Sandrobi wrote:

> I would find a script in order to achieve the o.s. version

The quickest way is to use a registry read, take a look at the function
GetOsVersionNumber (and GetSPNumber for service pack level) here:

http://groups.google.com/groups?selm=3EB70B7E.12C8CE54%40hydro.com


> and the MS Office
> programs and version installed.
> How can I do?

Take a look at this post for how to detect what MS Office
programs are installed:

http://groups.google.com/groups?threadm=urFnS78LEHA.1192%40TK2MSFTNGP11.phx.gbl


If you only need to know what major version of Office that is
installed (Office 2003/2002 etc.):

With WSH RegRead
http://groups.google.com/groups?threadm=3FB37470.63BC6FB6%40hydro.com

With WMI
http://groups.google.com/groups?selm=3FBB974D.DBBEA53D%40hydro.com


If you need to know in more detail what Office version it is (service pack
level etc.) it starts to be complicated:

http://groups.google.com/groups?selm=3FBAE0DD.DB43B2C1%40hydro.com


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/default.mspx