Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ' Detect WebEx Teams x64 - Per User Install (default)
- '
- ' @Jtracy_ItPro
- '
- ' this is tested against the MSI.
- ' I'm not sure if there's other installers (EXE).
- ' I'm not aware if there's any x86 version.
- ' - JT
- ' =-=-==-=-=
- ' let's call this 1.1? - JT
- ' This is designed for a MEMCM detection rule
- ' If an app with a matching name is found, it will spit out the name.
- ' If not... there is no output.
- ' To narrow by architecture, you can exclude or include the appropriate hive.
- ' This is meant to do exact matches.
- ' case sensitive
- ' Not version number specific, can be any verison.
- MyAppName = "Webex Teams"
- HKEY_LOCAL_MACHINE = &H80000002
- HKEY_CURRENT_USER = &H80000001
- UninstallNative = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
- UninstallWow32 = "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\"
- ProductsNative = "Software\Microsoft\Installer\Products\"
- Set Reg = GetObject("winmgmts://./root/default:StdRegProv")
- ' Define the function, to be repeated for each key base
- Function FindApp (Hive, KeyBase)
- Reg.EnumKey Hive, KeyBase, Results
- For Each Key in Results
- Reg.GetStringValue Hive, KeyBase & Key, "ProductName", FoundAppName
- If (FoundAppName = MyAppName) Then
- wscript.echo FoundAppName
- End If
- Next
- End Function
- ' now run the function
- ' per user product search
- FindApp HKEY_CURRENT_USER, ProductsNative
Add Comment
Please, Sign In to add comment