Jump to content


  • 0
glen8

Help with writting a query for a new collection

Question

Hi,

 

Can someome please help me with a query. I have a new collection (called MS Project REMOVAL) which I want populating with the following:

 

any machine in sccm (so look in all systems collection) with the following

 

They are not in the AD group 'MS Project' (or SCCM collection MS Project which is the same thing)

The machine name is like 'WSTN-' or 'LPTP-'

 

This is so once I remove a computer from the AD group MS Project (which removes it from the Project collection) is goes into the removal collection. This collection has an advertisement which uninstalls MS Project.

 

Thanks!!

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

The properties for the query you are looking for are in "SystemResource". For the first condition use "SystemGroupName" with the option "is not". For the second option use the property "Name" with the options "is like" wstn% lptp%.

To add some logic you should also check if MS Project is even installed on the computer. Otherwise several hundred or thousend computers will receive the advertisement even if there is nothing to uninstall.

So add another condition by using the AddRemovePrograms class queueing for the Product ID of your project version. The AddRemovePrograms table is filled by the hardware inventory of the clients.

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.