Hi,
As a prereq for App-V 5.0 SP3, I have Powershell 3.0 as a prereq. However, if Powershell version 4.0 is installed, it should also consider the prereq as ok.
This vbscript which checks if Powershell version 3 is installed but would like to add the detection if version 4 is installed.
Powershell instead of vbscript would be also ok.
Please advise.
J.
'Returns info if Windows Management Framework 3 in installed
' ----------------------------------------------------------'
Option Explicit
Dim objWMIService, strComputer
strComputer = "."
'Run the query
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Dim QFEs
Dim QFE
Set QFEs = objWMIService.ExecQuery ("Select * from win32_QuickFixEngineering where HotFixID like 'KB2506143'")
For Each QFE in QFEs
Wscript.echo "Update KB2506143 was installed by " & QFE.InstalledBy & " on " & QFE.InstalledOn
Next
WScrip