Skip to content

Software Task Sequence - WMI Query for Installed Software

Featured Replies

Hi,

I'm hoping someone can help me. I need to add a condition into a software task sequence so that an uninstall cmd line will only run if a particular piece of software is installed, let's say Adobe Acrobat. Can any helpful soul tell me what syntax I should be using? Will it be different for 64-bit add/remove programs, I'm guessing it will?

Namespace: root\cimv2\sms

 

 

Select * From SMS_InstalledSoftware Where ProductCode = '{XXXXXXXXXXXXXXXXXXXXXXXXXX}'

 

in SCCM 2012 ProductCode is replaced by SoftwareCode (for whatever reason)

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.