In my AD I have these two OU's: OU PC and OU User. There are a few users in the OU "Users" and several machines in the OU "PC".
I now need to write a GPO for one of these users which will automatically add him to the "local administrator group" on all of these machines – which either already are in that OU "PC", or will be added in the future.
Of course I could set him as a local admin manually on all of these PC's, but I need it to do that automatically.
Is there an option or a way to do that using a GPO?
Greetings!
Best Answer
You add local admins with Restricted Groups, which is in Computer Configuration. Therefore you can by definition add this GPO for the OU containing the computers you want it to affect.
DOMAIN\Local Admins
Its container is not relevant.OU=PC
.DOMAIN\Local Admins
Administrators
&Remote Desktop Users
.If you use different language versions of Windows the administrative group names can be different. In multilingual environments you can refer to these generic groups by their security identifiers (SIDs):
S-1-5-32-544
forAdministrators
S-1-5-32-555
forBUILTIN\Remote Desktop Users