Hi All,
Im trying to put together a script which pulls off various details.
I have done most of my criteria i need, but im havng trouble doing the rest,
CPU Speed
Current Operating System
Check whether Microsoft Word is installed,
Check whether Microsoft Exel is installed,
The current IE version
Check whether a particular process is installed,
Check whether a particular application is installed,
I have started this about a week ago, and have been looking at things such as scriptomatic, Wmi scripting help etc. I have done quite alot of other things myself but im getting stuck on the above which i want to be part of my script, Does anyone have any links for these or help they can offer.
For the IE Version, i kind of cracked that one but it returns lots of different IE versions and i am not sure how to stop this : a snippet of the code is below.
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2\Applications\MicrosoftIE")
Set colItems = objWMIService.ExecQuery("SELECT * FROM MicrosoftIE_FileVersion", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objItem In colItems
WScript.Echo "Version: " & objItem.Version
WScript.Echo
Next
Next
**** All i want is the "Ieexlore.exe" version *********
Many Thanks all,
Your help is most appreciated.
Sam.
Im trying to put together a script which pulls off various details.
I have done most of my criteria i need, but im havng trouble doing the rest,
CPU Speed
Current Operating System
Check whether Microsoft Word is installed,
Check whether Microsoft Exel is installed,
The current IE version
Check whether a particular process is installed,
Check whether a particular application is installed,
I have started this about a week ago, and have been looking at things such as scriptomatic, Wmi scripting help etc. I have done quite alot of other things myself but im getting stuck on the above which i want to be part of my script, Does anyone have any links for these or help they can offer.
For the IE Version, i kind of cracked that one but it returns lots of different IE versions and i am not sure how to stop this : a snippet of the code is below.
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2\Applications\MicrosoftIE")
Set colItems = objWMIService.ExecQuery("SELECT * FROM MicrosoftIE_FileVersion", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objItem In colItems
WScript.Echo "Version: " & objItem.Version
WScript.Echo
Next
Next
**** All i want is the "Ieexlore.exe" version *********
Many Thanks all,
Your help is most appreciated.
Sam.
Last edited: