I'm looking for a script to run (manually from command prompt) to connect to a remote computer and determine the version of MS Office running on it. Heyscriptingguy has this script:
********************************
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
*********************************
how can I change this so it runs on a DIFFERENT computer?
Thanks!!
********************************
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
*********************************
how can I change this so it runs on a DIFFERENT computer?
Thanks!!