0

I am having issues to make a GPO not apply to a certain OU.

I have a bitlocker GPO that uses password on domain level. (so applies to every ou) but I want it to exclude the computer and users that are part of the security OU. Because I want to use USB with a key on those computers.

I have tried this sollution https://www.faqforge.com/windows-server-2016/exclude-user-computer-group-policy-object/ where you add the computers and users to a group and deny the domain level gpo applying to the group.

But I get an error when trying to bitlock a computer in the OU. It says I have conflicting bitlocker GPO's.

What to do?

  • You have a bitlocker GPO on domain level? Brave. Well either you create the object and only link it to the appropriate OUs (2 clicks each, or one PowerShell command), or you deny read and apply permissions on each object you don't want it to apply. As an aside: the second option is very...ugly. – Lenniey Jan 14 at 17:16
  • You need to reboot the computers after adding them to the group. – Swisstone Jan 14 at 17:48
  • 2
    @Lenniey - Agreed - VERY brave; and very ugly. LInk the GPO to only the OUs to which it should apply, or if linking at a higher level, you could make use of the "block inheritance" option on the OU (better than the deny "apply", but less desireable than simply linking it only where it is needed. As for the permissions (if going that route), I would stick with Denying the "apply" only; you may likely still want these accounts to actually be able to READ the GPO (if only to edit or manage it...) – Semicolon Jan 14 at 18:52
0

While it's already been said, I'm going to stick this here so it's not hiding in comments. Mainly because, from what you've said, you've just gone ahead and applied your new policy at the domain root without even testing it on a sub-OU first?

That is an incredibly risky idea and you're lucky you haven't locked out your DCs or something.

Number one - get rid of your bitlocker policy at the domain root. Pretty much the only policies you should have there are your baseline security policies, such as password length, account lockout, all that fundamental stuff.

Secondly, start thinking about how your policies are going to be scoped. Should they really apply to every single object in the domain, or should they be applied just to computers or users? Or selected users or computers? This informs how you're going to link your policies.

Put all your computer objects into one OU (or a top-level OU and then sub-OUs as needed). I highly recommend you have separate top-level OUs for member servers and member workstations. Apply your bitlocker policy at the top-level workstations OU and/or the servers OU as required.

If you want to exclude the policy from your "security" computers (such irony), then create another top-level OU for those.

For general management, don't mix user objects and computer objects in the same top-level OUs. It's a pain to manage and makes LDAP queries very inefficient once the domain gets bigger. Put the same object classes (e.g. Users, Computers) into individual OUs, then create sub-OUs for those objects if required.

Don't fall into the legacy trap of creating sub-OUs for every department unless you literally have separate IT management teams for each one - you only need new sub-OUs if you need to customise OU permissions or policies. For policies, these days I'd generally recommend using AD groups for user/computer objects you want to target or computer WMI queries to limit the scope for granular policies).

Oh, and make sure you're not leaving user or computer accounts in the default Users or Computers containers. The only thing that should be in Users are the default accounts and groups that get created in the domain (and some of these should be moved for security purposes in due course - any account created subsequently should go into an appropriate OU.

And do some training on group policy management.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.