I want to determine which version of MS Office is installed on a computer (in
domain). There are two versions (Office 2000 and 2003) here at the moment and
i want to upgrade Office 2000 clients to 2003. All of our clients run on
Windows XP Pro SP2 and our AD is 2003 (FL: 2000 Native). I found a script
from "Hey Scripting Guy!" at below, it's working well on local. But I want to
run it as startup script on domain and it must write all client results into
a text file (with AD computer name and office version together in case of two
columns). How can i do that?
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colApps = objWMIService.ExecQuery _
("Select * from Win32_Product Where Caption Like '%Microsoft Office%'")
For Each objApp in colApps
Wscript.Echo objApp.Caption, objApp.Version
Next
Thanks your support...