(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”)