Relevance help

(imported topic written by jpeppers91)

I need to query WINXP and WIN 7 for VPN installations. Some of the criteria is the same except for file. Something I’m doing isn’t querying properly because WIN7 always says true and XP is sporadic. I’ve listed what is in common between OS’es and what is different. I posted the relevance I was using at the very bottom.

WINXP and WIN7

exist service “vpnagent”

exist service “ds_agent”

exist file “C:\Program Files\Cisco\Cisco AnyConnect VPN Client\vpnui.exe”

WINXP

exist file “c:\Documents and Settings\All Users\Application Data\Cisco\Cisco AnyConnect VPN Client\Profile\Rogue.xml”

WIN7

exist file “C:\ProgramData\Cisco\Cisco AnyConnect VPN Client\Profile\Rogue.xml”

Relevance

((name of operating system = “WinXP” OR name of operating system = “Win7”) and exists service “vpnagent” and exist service “ds_agent” and exist file “C:\Program Files\Cisco\Cisco AnyConnect VPN Client\vpnui.exe” and exist file “c:\Documents and Settings\All Users\Application Data\Cisco\Cisco AnyConnect VPN Client\Profile\Rogue.xml” or exist file “C:\ProgramData\Cisco\Cisco AnyConnect VPN Client\Profile\Rogue.xml”)

(imported comment written by SystemAdmin)

There are 64bit flavors of both XP and 7… so be sure to include the (x86) folder… Also while checking for the xml file, wrap it up with ( )

((name of operating system = “WinXP” OR name of operating system = “Win7”) and exists service “vpnagent” and exist service “ds_agent” and (exist file “C:\Program Files\Cisco\Cisco AnyConnect VPN Client\vpnui.exe” or exist file “C:\Program Files (x86)\Cisco\Cisco AnyConnect VPN Client\vpnui.exe”) and (exist file “c:\Documents and Settings\All Users\Application Data\Cisco\Cisco AnyConnect VPN Client\Profile\Rogue.xml” or exist file “C:\ProgramData\Cisco\Cisco AnyConnect VPN Client\Profile\Rogue.xml”))

(imported comment written by JackCoates91)

This is a useful page… http://technet.microsoft.com/en-us/library/cc749104(WS.10).aspx

Also remember that the BES client is a 32 bit app, even when running on 64 bit Windows… It’s best to use if/then/else (or if/then/! if you’re on 8.0).