Hi all,
I have searced the forums for an answer but not found one that will work with what I want to do. I need to get the Return Value of the "Get Operating System Version" job and based on the value I have conditions set in the "Latest Adobe Flash Player for Internet Explorer" job. Basically if the OS Version is 32 then run the 32bit job and if the OS Version is 64 then run the 64bit job. The issue for me seems to be able to get the return value from the "Get Operating System Version" I have tried a few different ways to do this, but do not seem successful. I am assuming that as long as I do a wscript.echo that is the "return value" from the script. When I look at the "Get Operating System Version" task results it shows the correct OS Version, but the conditions always bomb out and if the return value equals 64 it always fails.
I do not want to use the MSD policies for this, I want a service desk tech just to be able to run the job and not have to figure out what version the OS is. Any help would be greatfull!
TIA, Larry
Job/Task: Get Operating System Version
wscript.echo getOSVersion
Function getOSVersion()
' script will return either 32 or 64
Dim ObjProc
strComputer = "."
For each ObjProc in GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "").ExecQuery ("Select AddressWidth from Win32_Processor")
getOSVersion = CInt(ObjProc.AddressWidth)
Next
ObjProc = ""
End Function
Job/Task: Latest Adobe Flash Player for Internet Explorer