SCCM Deny user advertisements on specific computers

Hi All,

I have user based collections for software distribution. Now I want to deny those advertisement on specific computers. Can you help me?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You have to add a second mebership rule on those collection.
This first you've configured is applies to the users and the second one to the computer resources. (see picture)

1. Add a new Membership Rule
2. Specify a Name for the Rule
3. Choose System Resouce as Resource Class
4. Edit the query statement to what you need.

select *  from  SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Name not like "ComputerX"

tegmine_itAuthor Commented:
Really, that simple? So even though the user query does not include systems. Adding a query that return false for specific systems will do the job? Cool.
I'll test it right away and let you know.
I never tried that :)
But i assume in this case two conditions must be true that the advertisement is executed on the computer. Just give it a try and we will see what happens
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

tegmine_itAuthor Commented:
It doesn't work yet. Now the collection is filled with the user group and machine's that that meet the query. The package is advertised to both. So when I logon to a machine that was excluded in the query the package is advertised because the user is in the group.
So there is no dependancy between the queries.
No the problem is also that we cant filter the result of the user query as the result are users and we cant query for specific computers in a user collection.
Let's wait for other experts input. Maybe there's a possibility
tegmine_itAuthor Commented:
Yes, seems like a similar sitution indeed, but no answer yet though. Of course scripting is a solution but that's almost a solution for anything. I trying to look for a solution that is non scripted so it can be maintained by engineers without scripting skills.
tegmine_itAuthor Commented:
looks like scripting is the only solution

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tegmine_itAuthor Commented:
no real solution yet, must be custom scripted
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.