Avatar of Pete
Pete
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Software Restriction Policy - 'Allow' GPO beneath 'Deny' GPO

I want to restrict all but one room of computers using a piece of software.

I have setup a Software Restriction Policy (as a loopback policy, so all users who log onto the computer have it applied) of deny to the software path .exe on the top level computer OU.
I then setup an identical loopback SRP policy to allow the software path .exe in a sub OU containing the computers I want to run the software.

Policy processing shows both polices are being applied but the software is still denied on all computers...

Is this the wrong approach?
SoftwareActive Directory

Avatar of undefined
Last Comment
McKnife

8/22/2022 - Mon
Pber

Standard windows process.  Deny trumps allows.  No matter where in the order
Pber

Pete

ASKER
Thanks, can you block a specific GPO on a specific OU? The link you sent is blocking users from getting any GPO?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Pber

Yet Another solution would be on the original GPO that has the deny, set the security to deny that one computer.
So edit the gpo, hit the delegation tab, select the advanced tab.  Add the one computer you want to have access, then deny it read
Pber

The Block inheritance, will block all above GPO's.  Not typically the idea solution.  Depending on your gpo structure, you could re-link desired blocked gpo's from above directly to the OU, but usually not a very elegant solution.
To block specific GPOs, That is as I explained using the delegation tab.

Using Denies are always a challenge.

Another option would be to revisit your OU structure.  Does the sub ou containing the desired need to be under the ou containing the deny
You could change it to have a general Workstation OU at the top, Then sub OU of the Workstations OU with computers with the deny and another sub OU of the Workstations OU with computers without the deny.  This would be a much cleaner architecture, GPO's that you want applied to all are at the Workstations OU, then the specific one to the sub OU.
McKnife

About "deny trumps allow" - with SRP, it's different. The more precise rule wins, read https://www.sysadmins.lv/blog-en/software-restriction-policies-rule-ordering.aspx But yes, since both of your rules are precise path rules right down to the name of the .exe, in that case, I suspect deny would indeed win.

You should simply use security filtering right at the GPO and not create sub-OUs for this.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Pete

ASKER
Ok, how do I set security filtering so only computers in a group or OU can run the software? Can u be a bit more specific please?
Thanks
ASKER CERTIFIED SOLUTION
Pber

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
McKnife

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Pete

ASKER
OK mcknife so are you agreeing with pber suggestion?

"Yet Another solution would be on the original GPO that has the deny, set the security to deny that one computer.
So edit the gpo, hit the delegation tab, select the advanced tab.  Add the one computer you want to have access, then deny it read"

Thanks
McKnife

You would deny read and apply, but I guess the outcome would be the same.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck